how do I copy the worksheet tab name to a cell?

S

shoshaw

I've got a workbook with 12 tabs. Within one of the tabs, I'd like to
create a table of the 12 tab names. When I change a tab name, I want the
table to be updated automatically.
 
B

Bob Phillips

Assuming that your tabs are named Sheet1, etc, then in A1 put

=MID(CELL("Filename",Sheet1!A1),FIND("]",CELL("Filename",Sheet1!A1))+1,255)

In A2

=MID(CELL("Filename",Sheet1!A2),FIND("]",CELL("Filename",Sheet1!A2))+1,255)

etc

As you change any sheet names the table uipdates. Just change to your sheet
names. If they include spaces in the names, enclose the sheet name in single
quotes.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Top