Try this technique from a post by Harlan ..
First, save the book (this is a pre-requisite)
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.
Test it out. In any sheet in the book, in any cell,
just enter: =WSN to return the sheetname in the cell.
---
ronoee said:
I would like to copy the sheet name into a cell in the same sheet in a way
that if the sheet name is changed the content of the cell is changed too.
Is there a function to do this?
Thank you