#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Tab Name

Is there a way of displaying the tab name in a cell?

PWS


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Tab Name

The following is taken from:
http://www.xldynamic.com/source/xld.xlFAQ0002.html

File path, file and worksheet name:
=CELL("filename",A1)
File path only:
=LEFT(CELL("filename",A1),FIND("[",CELL("filename",A1),1)-1)
File name only:
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CELL("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1)
The sheet name:
=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)
Restrictions
This technique only works for workbooks that have been saved, at least once.

BTW: it is a worksheet that has a name; the tab is the thingme (technical
term) you use to open a worksheet.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Paul W Smith" wrote in message
...
Is there a way of displaying the tab name in a cell?

PWS



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Tab Name

Maybe.....

Range("A1") = ActiveSheet.Name

--

Regards,
Nigel




"Paul W Smith" wrote in message
...
Is there a way of displaying the tab name in a cell?

PWS


  #4   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default Tab Name

Apologies for my mistake I meant to post this to the
Excel.WorksheetFunctions newsgroup.......

Is there a way of displaying the tab name in a cell?

PWS





"Nigel" wrote in message
...
Maybe.....

Range("A1") = ActiveSheet.Name

--

Regards,
Nigel




"Paul W Smith" wrote in message
...
Is there a way of displaying the tab name in a cell?

PWS




  #5   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Tab Name

See http://www.xldynamic.com/source/xld.xlFAQ0002.html

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Paul W Smith" wrote in message
...
Apologies for my mistake I meant to post this to the
Excel.WorksheetFunctions newsgroup.......

Is there a way of displaying the tab name in a cell?

PWS





"Nigel" wrote in message
...
Maybe.....

Range("A1") = ActiveSheet.Name

--

Regards,
Nigel




"Paul W Smith" wrote in message
...
Is there a way of displaying the tab name in a cell?

PWS






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



All times are GMT +1. The time now is 02:12 PM.

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

About Us

"It's about Microsoft Excel"