CELL("Filename")

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
If I use the following worksheet function on several sheets why does it not show the correct tab name on each individual sheet but only show the last tab name where I've select the cell and pressed F2 and return so commit a recalc

MID(CELL("Filename");FIND("]";CELL("Filename");1)+1;LEN(CELL("Filename"))-FIND("]";CELL("Filename");1)

Or is there a better way to show in a cell the tab name e.g. I want to use it in a title and yes I know I could can show it in a custom header but that would appear in the header and not on the sheet

Thanks in advanc

best regard
KM
 
Hi Kevin,
You *must* supply a cell reference for the worksheet you
=CELL("Filename",A1)
Read more at
http://www.mvps.org/dmcritchie/excel/pathname.htm


Kevin McCartney said:
Hi,
If I use the following worksheet function on several sheets why does it not show the correct tab name on each individual sheet
but only show the last tab name where I've select the cell and pressed F2 and return so commit a recalc.
MID(CELL("Filename");FIND("]";CELL("Filename");1)+1;LEN(CELL("Filename"))-FIND("]";CELL("Filename");1))

Or is there a better way to show in a cell the tab name e.g. I want to use it in a title and yes I know I could can show it in a
custom header but that would appear in the header and not on the sheet.
 

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

Back
Top