Taking Data From Document To Rename Tabs

Apr 21, 2013

There is a folder in a shared location which many people use at work. Within this folder, I have an excel document with all current stock (called "Current Stock"). There will never be more than 20 items in current stock. There is also other documents within this folder which relate to lots of other things, Interest, Deals etc.

What I want to do is every time a new item is added to the "Current Stock" document, a tab is created with that Item name within all the other documents.

View 1 Replies


ADVERTISEMENT

Mass Rename Tabs

Feb 9, 2010

I have 4 employees by 52 weeks tabs in a workbook. The first 4 tabs are as follows:

Pat 010810
Dan 010810
Max 010810
Ann 010810

I would like some method (maybe VBA?) that I can rename the subsequent tabs, having the same names but the date with a seven day increment; i.e.the next tab would show Ann 011510, etc.

I don't know how to code, but can get to the VBA page and copy really well.

View 7 Replies View Related

Rename All Tabs In Workbook

Jan 21, 2010

I have a workbook that pulls in data from other sources and contains 15 linked sheets. The data changes when different criteria is selected in the first sheet. The first 2 sheets are summary sheets and the tabs are named correctly.

I would like to be able to rename the remaining 13 tabs using labels found in the cells in the first sheet. These tabs should update or change when the first sheet is manually recalculated (F9).

I have used ActiveSheet.Name=Range("A1") but it doesn't apply in this case. Is there a macro that could run with something like Sheet1.Name=Range("A1"), Sheet2.Name=Range("A2"), Sheet3.Name=Range("A3"), etc.... or maybe something in each sheet that would change the name of the tab to a specific name off sheet 1 when the whole workbook is recalculated?

View 10 Replies View Related

Rename Multiple Tabs ...

Apr 4, 2009

Could you help with an onerous task that I must complete every Quarter.

I have a spreadsheet with multiple tabs.

The first 3 Tabs are Calculation sheets and do not need to be re-named.

All the preceeding sheets each need to be renamed to the days of the month (British Format), skiping Sundays.

i.e Tab 4 should be renamed 010409, Tab 5 should be renamed 020409, Tab 6 should be renamed 030409, Tab 7 should be renamed 040409, Tab 8 should be renamed 060409 and Tab 9 should be renamed 070409 etc etc ...

Extra - Also if possible on each sheet could the Tab date be placed into Cell A4 (eg. 010409) and also the Day number (eg. 01) (Starting from 01 on 010409, 02 on 020409, 03 on 030409, 04 on 040409, 05 on 060409, 06 on 070409 etc etc ...) into Cell A6.

View 6 Replies View Related

Rename Tabs With Code

Jan 10, 2007

I am pulling my hair out in frustration with this right now. I have a .csv file that I am attempting to run a macro on. I will need to move between tabs, and want to rename a tab to remove the date as it is not consistent in format. I have tried numerous ways, and I don't get an error message, but the tab is not renamed either. Code I have tried is below ....

View 9 Replies View Related

View Different Tabs In Same Document At Same Time?

Mar 25, 2012

Is it possible to view different tabs in the same document at the same time?

View 4 Replies View Related

Automatically Rename Sheet Tabs

Nov 3, 2009

I have a workbook with multiple tabs. On sheet one a person chooses a date to initialise a formula. That date is then copied to sheet two and placed in cell D5. The date is projected out for two weeks and then the next fornight starts on sheet three and so on. The start date for each new fortnight appears in cell D5 of each sheet. I want that information to be the name of the tab for sheet two, three etc. I have put this code into the "This Workbook" section:

Private Sub Worksheet_Change(ByVal Target As Range)

' Renames all worksheet tabs with each worksheet's cell A1 contents.
'If cell A1 has no content, then that tab is not renamed.

For i = 1 To Sheets.Count
If Worksheets(i).Range("$D$4").Value "" Then
Sheets(i).Name = Worksheets(i).Range("$D$4").Value
End If
Next
End Sub

I have also tried:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$D$4" Then ActiveSheet.Name = Left(Target.Value, 10)
End Sub

I then go back into sheet one and change the date and nothing happens. I seem to be missing something. Can anyone please help?

View 9 Replies View Related

How To Rename Worksheet Tabs Using Formula And Formatting

Jan 27, 2014

I have a workbook with 30+ worksheets

named 23 Wed, 24 Thur, 25 Fri, etc etc

meaning April 23, 2014 Wednesday, April 24, 2014 Thursday, etc etc

The next project may start on May 19, 2014 Monday - so I have to rename each worksheet beginning with 19 Mon, etc etc

Renaming each worksheet manually takes a long time and is prone to error

I would like to just rename the first worksheet to start date of May 19, 2014 and have the rest renamed automatically.

View 4 Replies View Related

Rename Tabs Based On Information In Cell

Mar 11, 2013

I am looking for a macro to rename tabs based on information in A1 on each tab. The thing that is causing me issues is the cell A1 has a formula in it and it changes on a daily basis with days of the week but the tab only updates when i double click A1 and press enter.

I need it to update automatically.

View 4 Replies View Related

Macro - Rename Only & Sheet... & Tabs With Last 8 Characters From Cell

Nov 5, 2009

I pull an excel sheet from a database each day that gives me sales data for different products sold. The way the spreadsheet comes from the system, the first tab is named "Document Map" and lists all of the products, and each product then has its own tab but they're generically named (Sheet1, Sheet2, etc.). The name of the product is always in cell T8, but the name itself is only the last 8 characters of that cell.

What I'm hoping to accomplish with a macro is two things:

1) Retrieve the last 8 characters from T8 in each tab, and name the tab with those characters (same effect as the formula "=right(T8,8)").
2) Ensure that this only occurs on tabs with the word "Sheet" in the beginning. Depending on the day, there could be any number of products and they each get their own tab, so I was hoping to be able to get the macro to only work on sheets where the first 5 characters are "Sheet" regardless of the number after that.

View 9 Replies View Related

Rename Tabs (Sheets) Based On Cell Contents

Nov 10, 2009

I have 5 sheets. In the first sheet I have set up 4 cells where I want the contents of them to automatically rename the other 4 corresponing sheets.

Eg.
In Sheet 1, Cell B6, I want the contents (which will be text) to be the name of sheet 2 automatically.

In Sheet 1, Cell B7, I want the contents (which will be text) to be the name of sheet 3 automatically.

View 8 Replies View Related

Click Button To Rename Sheet Tabs Based On Range

Jul 20, 2006

I searched a few times for the answer to my problem, using different search terms, but I've come up somewhat empty (this *might* be because I'm not up-to- speed with Excel's terminology?). Anyway, my problem is this: I have a workbook which is designed to track various data for a corporate training course ( sheets for attendance, grades, tool logins, etc). After all of these are sheets numbered 1-25 (we never have more than 25 students in a class, but usually around 20). The numbered sheets correspond to the student's number in the on the class list sheet (so, the first student would have personal "report card" information on sheet 1; the eleventh student in the class list would have their information on sheet 11, etc).

What I would like to do is have some way of putting a button on the class list sheet which would look at student list and rename the sheets to correspond to the student names. For example, if the fifth student listed was 'John Doe', it would rename his personal sheet ('5') to 'John Doe'. Obviously, I would need to do it for all of the students, and IDEALLY it would then get rid of any numbered sheets which are not used (having 21 students would only rename the first 21 sheets, but then hide sheets 22, 23, 24, and 25).

View 9 Replies View Related

Create Documents Based On Cell Values And Input Tabs In New Document

Sep 12, 2013

I want to create a macro that creates a new .xlsx document based on cell values. And input 4 tabs into each document with specified tab names. I have a document that pulls from external sources and fluctuates with amount of data per day. I envision something that will make a new document named for the contents in cell A1, then function as a control+down to create a new document for A2, then A3 until there is no content left (should mention these are lookup formulas, and if there is no data it pulls a value of "0")

Is there a way to put in the code, the tab names it would create in each new document, or would that have to look to a cell value for the naming? The tab names would be "GS", "MYSS", "COLL SHEET", and "WIRE".

View 1 Replies View Related

Document With Two Tabs, One "data" One "offer"

Jul 25, 2008

i have an excel document with two tabs, one "data" one "offer"
can select parts from a list in "data" (putting a quantity next to the part number) then hit a command button and have the part number, description, quantity and price added to the "offer" tab
(i have a smaller version/sample doc if anyone wants to take a look )

View 9 Replies View Related

Data Entry Taking An Age!

Sep 29, 2008

However data now takes far too long to enter; for example if I type the number 9 into a cell it takes around 30 seconds to let me enter more data, it is as if it is working on some calculations. The VBA I'm using is as shown below.

View 3 Replies View Related

Taking Data From A Cell

Aug 7, 2009

Is there a fomula that would take data from a cell.

I am looking to take everything before and includuing the word LTD
For example if a cell contained
Joe Bloggs Ltd (Mr Jones) C/o USA

I would like to be able to take "Joe Bloggs LTD"

View 9 Replies View Related

Taking Data From Website To Spreadsheet?

Jun 21, 2013

I am an excel novice trying to create a list of local churches. There are several online lists that I am taking the data from but, being a novice, I am entering the data manually. How to set up a method to bring the data into excel and order it where I want it.

I am attaching the spreadsheet.

These are the websites I am taking my data from: [URL]

View 3 Replies View Related

Taking Data From Other Spreadsheets Using A Macro

Oct 3, 2007

I have a number of reports in excel (all in the same format) which I need to take certain data out of and store it into one main spreadsheet. Searching through the forums I found some code which I think will do this:

Sub test()
Dim myDir As String, fn As String, ws As Worksheet
myDir = "C: est"
fn = Dir(myDir & "*.xls")
If fn = "" Then Exit Sub
Do While fn ""
Set ws = Workbooks.Open(myDir & fn).Sheets(1)
ws.Range("a7", ws.Range("a" & Rows.Count).End(xlUp)).EntireRow.Copy
ThisWorkbook.Sheets(1).Range("a" & Rows.Count).End(xlUp).Offset(1)
Workbooks(fn).Close False
fn = Dir
Loop
End Sub
I have tried using this code, altering the Dir String to the folder the documents are in.

However, when I run the code, nothing happens. I don't get any errors, and nothing appears in the spread sheet.

To be honest, I am not totally familiar with macros in Excel. I can get the gist of what the code is doing having using VB before, but am not totally familiar with some of the functions being used here.

View 9 Replies View Related

Formulas That Can Extract Data By Taking Numbers

Oct 14, 2008

Is there a formula that can extract data by taking numbers within a specific range and assigning a number to the data within that specific range?

0-25=1, 26-50=2, 51-75=3, 76-100=4, >100=5

View 9 Replies View Related

Taking Multiple Data Block To Another Sheet

Mar 3, 2007

I need to use Excel 2007 in a stock sheet situation.
I have attached a picture of what the sheet will look like.
What I need is a formula that will take a value in column c and then add the value in colum a behind that. Preferably with a X or - between them ie.

If i took the first row and applied the formula it should kick out 5 x Jam
The main thing is it must output the answer to another file/page so that the main page stays the same. And if there is no value in Colum c it must ignore it.

View 9 Replies View Related

Workbook That Compares Two Sheets Of Data By Taking The Difference Between The Two

Jun 18, 2009

I have a workbook that compares two sheets of data by taking the difference between the two. Some of the cells contain N/A for value, so when I take the difference of two sheets, it gives me #Value! error. My question is how can I format it, so when the cell contains text it displays N/A or if its a value: it takes the difference and populates the value.

View 9 Replies View Related

Average From Whole Months Data Taking Exact Date To Start With

Jan 7, 2014

In the file attached there is only the data to look at, though file is little bit lager.

Now in cell G10 I've got the stock forecast in 3 months time, this stock forecast is calculated from a date rounded to the closest month (according to my criteria), then the formula looks at the reference number cell D1 to work out the formula. All the steps are in the file.

In order to be more accurate my boss and I want to use the exact date, so that delete all the round month process. My intention is to use the day of the date and then make a fraction of the months to calculate the average. Taking into account that a month have as an average of 30.4166 days.

In the file I did an example, to clarify my messy explanation.

Cells B2, C2, D2 won't be needed in order to do so.

Please have a look at the file. At the end my intention is to to such a formula or a similar one. The formula should be an automatic one when typing dates in cell A10

The result of it is in row 31 and 32.

trial.xlsx

View 1 Replies View Related

Searching For Mistakes In Document While Using Another Document As Reference

Feb 2, 2014

I am processing a fair few Invoices, which are being sent to me via e-mail as excel documents, very often they contain mistakes, a decent amount of mistakes. Usually the prices are wrong.

I keep track of every single entry on the invoice on my own document - Tracker, which I consider to be the superior/more correct document to the Invoice presented to me by my contractor.

Both of the documents have a reference number, which is a specific docket number, and horizontally, in the invoice, there is going to be a price for this docket. In my document, there is going to be a separate column for the total price.

Is it possible (I guess with VBA) to check for mistakes in the Invoice, but use the Tracker as a reference for this check.

Tracker has
columns
A - Name
B - Department
C - Date
D - Docket No.
C - Total price for the docket (calculation of E to Z)
E to Z - all smaller entries

Invoice has
columns
A - Date
B - Docket No.
C to E price for that docket, but it is spread, because departments are separated out, so each VAT account can be charged accordingly. I guess it is possible to do a separate column for the price, if it is easier to do a script that way.

Basically, I need to check if in the Invoice document, the price (C to E) for Docket No. (B) is the same as the price (C) for the Docket No. (D) in the Tracker.

I would like the wrong entries to be highlighted on the Invoice Document, so I can see straight away, that this needs attention.

Not always the price is wrong, sometimes the Docket No. is spelled incorrectly (Dyslexic contractor), hence the highlighting.

View 3 Replies View Related

Script That Will Turn Excel Document Into A Txt Document

Feb 17, 2009

I need a script that will turn a excel doc into a txt doc. Thats the easy part. The hard part (at least I think it is), is I need it to be in a certain format and I'll do my best to explain that fomat below.

View 9 Replies View Related

Copy Formula Down / Across Taking From Data Table With Vertical And Horizontal Parameters

Mar 6, 2013

Excell file eWorked Example.xlsx

I am trying to set-up a formula that needs to be copied down and across and draws upon a data table that has a horizontal and vertical parameter that needs to be checked for the formula to return the right answer.

I have tried all manner of Index/Match, Offset etc but can only get one of either the vertical, or horizontal parameter working.

I have attempted a formula which is

=INDEX('PIP Input'!$C$17:$C$29,MATCH(H$1,('PIP Input'!$H$17:$H$29),0),MATCH($B4,'PIP Input'!$H$15:$L$15,0))

('PIP Input'!$H$17:$H$29) is column dependent on MATCH($B4,'PIP Input'!$H$15:$L$15,0)

If $B4 returned a different result from ('PIP Input'!$H$17:$H$29) then it would need to be ('PIP Input'!$I$17:$I$29)

How to nest the Horizontal Match inside the Vertical Match, such that the Vertical Match changes column depending on $B4?

View 1 Replies View Related

Saving Document After Every Data Entry?

Aug 20, 2013

How to set up an excel sheet to automatically save data after every data entry? Or maybe after a specified time period?

View 1 Replies View Related

Pull Data From 1 Row And Use It To Populate Word Document

Jun 30, 2014

I would like to automate a word document that I have to fill out manually based on the info in a spreadsheet. I would like to be able to select a row that the data comes from as well. I have attached the spreadsheet and word document to this thread.

Attached Files:
localLappy.xlsx‎
Repair Summary.docx‎

View 2 Replies View Related

Copy Data From Worksheet Into Word Document

Aug 4, 2007

I have been looking for a while for a code to copy cells A1:D23 on a sheet and open a Word Document and paste these onto a document and Save this as the name shown in Cell C1. Everything I see to find is over complicating what I need.

View 6 Replies View Related

Rename A Sheet Based On Cell Data

May 17, 2008

I'm looking for a solution that will rename the sheet to whatever is enterd into particular cell.

Ie: cell A1 = "Joe Bloggs", then the sheet is renamed to Joe Bloggs

Also, on the same sheet, is it possible to change the sheet tab colour based a data in a different cell?

Ie: cell B1 = "Parts", then the sheet tab colour changes to pink.

View 14 Replies View Related

Macro To Print Document Based On Cell Data

Dec 15, 2008

got a great bit of code the other day from this forum to automatically print 'x' amount of copies based on the value in cell (see below)

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved