#1   Report Post  
Jeff B
 
Posts: n/a
Default Linking to Tab Name

How do I link a cell to the name of the worksheet tab?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Do you mean that you want the sheet name in a cell?
Workbook has to be saved,

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

you can put that formula in any cell, the cell function needs a reference
and A1 can be replaced with any cell reference

If you mean that you want to change the sheet name depending on what's in a
cell,
then you would need VBA (macro), if so post back


Regards,

Peo Sjoblom

"Jeff B" wrote:

How do I link a cell to the name of the worksheet tab?

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

It's easier to understand if you extract the cell part

=CELL("filename",A1)

will return path filename and sheet name

then mid "extracts" the sheet name which is at the end and the last
character before the sheet name is "]"

--
Regards,

Peo Sjoblom


"Jeff B" wrote in message
...
That works perfect. I don't understand the formula, but it gives the
result
I wanted.

Thank you.

Jeff


"Peo Sjoblom" wrote:

Do you mean that you want the sheet name in a cell?
Workbook has to be saved,

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

you can put that formula in any cell, the cell function needs a reference
and A1 can be replaced with any cell reference

If you mean that you want to change the sheet name depending on what's in
a
cell,
then you would need VBA (macro), if so post back


Regards,

Peo Sjoblom

"Jeff B" wrote:

How do I link a cell to the name of the worksheet tab?


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
conditional forming causing linking errors Dave Breitenbach Excel Worksheet Functions 0 April 1st 05 08:19 PM
Linking worksheets after runnning report Steve Excel Discussion (Misc queries) 0 February 28th 05 09:21 PM
Have to use cursor keys cannot use mouse in excel when linking fo. LUFC Excel Worksheet Functions 0 January 31st 05 09:51 AM
Linking Workbooks Dede McEachern Excel Worksheet Functions 0 January 21st 05 08:27 PM
linking cells colors Jaan Excel Worksheet Functions 1 December 12th 04 07:34 AM


All times are GMT +1. The time now is 10:54 AM.

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"