Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get sheet name in formula
Is there a formula that will return the current sheet name?
like: =Cell("Sheetname") Thanks in advance! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get sheet name in formula
=MID(CELL("filename"),FIND("]",CELL("filename"))+1,999)
In VBA, just: MsgBox(ActiveSheet.Name) -- Gary''s Student - gsnu200905 "xp" wrote: Is there a formula that will return the current sheet name? like: =Cell("Sheetname") Thanks in advance! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get sheet name in formula
Just to add to Gary's Student's response.
This formula: =MID(CELL("filename"),FIND("]",CELL("filename"))+1,999) will give you the name of the activesheet when excel recaluates--not necessarily the name of the sheet containing the formula. If you want the name of the sheet that contains the formula, then include a cell's address in that formula (both spots). I like to use the cell address that holds the formula: =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,999) ps. Both these formulas will only work if the workbook has been saved at least once. Gary''s Student wrote: =MID(CELL("filename"),FIND("]",CELL("filename"))+1,999) In VBA, just: MsgBox(ActiveSheet.Name) -- Gary''s Student - gsnu200905 "xp" wrote: Is there a formula that will return the current sheet name? like: =Cell("Sheetname") Thanks in advance! -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copying a template sheet and inputting a formula into another sheetthat references the new sheet | Excel Programming | |||
Can I annotate a formula result in Sheet 1 in Sheet 2 by Cell Addr | Excel Worksheet Functions | |||
create a formula in one sheet that would read data from separate sheet automatically | Excel Discussion (Misc queries) | |||
how to copy a cell with formula from sheet 1 (data is all vertical) into sheet 2 | Excel Worksheet Functions | |||
Lookup cell contents in on sheet based on a formula in second sheet | Excel Worksheet Functions |