Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Refer to sheets without using tab name??
Cell formulas that refer to other sheets usually look like
this: =Sheet2!A1 ' Get cell A1 from Sheet2 However, what if someone changed the name of the Sheet2 tab to something like "ThisIsMyTab"??? Does that mean I would have to manually change all possible formulas to the following: =ThisIsMyTab!A1 ????? I'm mostly curious if there's a way to use formulas that do not strictly rely on the names of always changing tab sheet names. thank you |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Refer to sheets without using tab name??
Hello,
The best way is to test it by yourself. In Excel 2007, formulas that refer to another sheet (in the same workbook) will be automatically changed by excel if you change the name of any sheet of the workbook. "Robert Crandal" a écrit dans le message de groupe de discussion : ... Cell formulas that refer to other sheets usually look like this: =Sheet2!A1 ' Get cell A1 from Sheet2 However, what if someone changed the name of the Sheet2 tab to something like "ThisIsMyTab"??? Does that mean I would have to manually change all possible formulas to the following: =ThisIsMyTab!A1 ????? I'm mostly curious if there's a way to use formulas that do not strictly rely on the names of always changing tab sheet names. thank you |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Refer to sheets without using tab name??
I have not tested this, but it would seem that you could use a range name w/
Global scope. Even if this was just used to select the sheet and make it active, it would be a good anchor. Once active, you could get the sheet name and cobble together the formula using a variable w/ the sheet name it it. "Robert Crandal" wrote: Cell formulas that refer to other sheets usually look like this: =Sheet2!A1 ' Get cell A1 from Sheet2 However, what if someone changed the name of the Sheet2 tab to something like "ThisIsMyTab"??? Does that mean I would have to manually change all possible formulas to the following: =ThisIsMyTab!A1 ????? I'm mostly curious if there's a way to use formulas that do not strictly rely on the names of always changing tab sheet names. thank you . |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Refer to sheets without using tab name??
I'[m thinking you're looking for something like this
http://www.ozgrid.com/VBA/excel-vba-sheet-names.htm -- HTH, Barb Reinhardt "Robert Crandal" wrote: Cell formulas that refer to other sheets usually look like this: =Sheet2!A1 ' Get cell A1 from Sheet2 However, what if someone changed the name of the Sheet2 tab to something like "ThisIsMyTab"??? Does that mean I would have to manually change all possible formulas to the following: =ThisIsMyTab!A1 ????? I'm mostly curious if there's a way to use formulas that do not strictly rely on the names of always changing tab sheet names. thank you . |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Refer to sheets without using tab name??
#1. No. Those kinds of formulas wouldn't need to change.
#2. You may find a way, but it'll probably slow excel down--and it'll be easy to make mistakes. #3. Why do you have sheets changing names so often? Robert Crandal wrote: Cell formulas that refer to other sheets usually look like this: =Sheet2!A1 ' Get cell A1 from Sheet2 However, what if someone changed the name of the Sheet2 tab to something like "ThisIsMyTab"??? Does that mean I would have to manually change all possible formulas to the following: =ThisIsMyTab!A1 ????? I'm mostly curious if there's a way to use formulas that do not strictly rely on the names of always changing tab sheet names. thank you -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Alternate way to refer to sheets??? | Excel Programming | |||
find out which sheets refer to a cel | Excel Worksheet Functions | |||
refer to sequential sheets in a formula | Excel Worksheet Functions | |||
#REF in Sheets that refer to Pivot Tables | Excel Discussion (Misc queries) | |||
refer to the sheets Name property in my code (not what is on the Tab) | Excel Programming |