ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Return Tab Name (https://www.excelbanter.com/excel-worksheet-functions/243156-return-tab-name.html)

oldblindpew

Return Tab Name
 
I haven't been able to find a function that returns the name of a worksheet
tab. In custom headers, the tab is referenced by &[TAB] but this doesn't
work as a cell formula. Is there any way to do it?
Thanks,

Peo Sjoblom[_3_]

Return Tab Name
 
Try this


=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)


Note that the workbook needs to be saved and don't replace filename with the
name of the file, it is part of this function

--


Regards,


Peo Sjoblom


"oldblindpew" wrote in message
...
I haven't been able to find a function that returns the name of a worksheet
tab. In custom headers, the tab is referenced by &[TAB] but this doesn't
work as a cell formula. Is there any way to do it?
Thanks,




T. Valko

Return Tab Name
 
Try this:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

The file must have been saved at least once for that to work.

--
Biff
Microsoft Excel MVP


"oldblindpew" wrote in message
...
I haven't been able to find a function that returns the name of a worksheet
tab. In custom headers, the tab is referenced by &[TAB] but this doesn't
work as a cell formula. Is there any way to do it?
Thanks,




Yahya Al-Tawil[_2_]

Return Tab Name
 
i think You you can use this UDF
Function SheetName()
SheetName = Application.Caller.Parent.Name
End Function


All times are GMT +1. The time now is 04:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com