Inserting Worksheet name in a cell

S

Scott

I want to insert the worksheet name into a cell (not into
the header or footer).

I hjave found the INFO to do it for the directory and
other items but not for the worksheet name.

Is there any way to do this without a macro??

thanks.
 
J

J.E. McGimpsey

one way:

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

Note: the file must be saved before this will work.
 
P

Peo Sjoblom

Workbook has to be saved

put this in any cell of the sheet

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top