Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default CELL("Filename")

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default CELL("Filename")

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
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Kevin McCartney" wrote in message ...
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 advance

best regards
KM



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CELL("filename") doesn't work on shortcut workbook link? Kevin Excel Worksheet Functions 12 February 6th 10 07:33 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION yossie6 Excel Discussion (Misc queries) 1 June 16th 08 12:16 PM
Cell("filename") doesn't update to new filename when do save as. Louis Excel Worksheet Functions 2 March 22nd 07 07:27 PM
CELL("filename") acting Volatile? (in assoc. with PULL) [email protected] Excel Worksheet Functions 4 August 3rd 06 03:23 PM


All times are GMT +1. The time now is 10:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"