Another technique, credits to Harlan,
which enables usage for all sheets at one go
(same proviso - book must be saved beforehand)
Click Insert > Name > Define
Put under "Names in workbook:": WSN
Put in the "Refers to:" box:
=MID(CELL("Filename",INDIRECT("A1")),FIND("]",CELL("Filename",INDIRECT("A1")))+1,32)
Click OK
The above defines WSN as a name we can use to refer to the sheetname in
formulas. It will auto-extract the sheetname implicitly.
Then test/use in any sheet, in any cell, eg: =WSN
will return the particular sheetname
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Regards,
Ryan--
--
RyGuy
Cheers
Paul
=SheetName()
Has no arguments and doesn't care if the workbook is saved.
Gord Dibben MS Excel MVP
this really works fine... even in a Spanish Excel
Gracias,
Fernando