Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default referencing the name of a worksheet

How can I refer to the 'name' of a worksheet in a cell.
So that if I change the name of the worksheet, the new name will be
reflected in that cell.

(like worksheet1.name, reference the 'name attribute' of a worksheet).

Thanks in advance,
Simon
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default referencing the name of a worksheet

try

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

which returns "Sheet2"

"Simon P California" wrote:

How can I refer to the 'name' of a worksheet in a cell.
So that if I change the name of the worksheet, the new name will be
reflected in that cell.

(like worksheet1.name, reference the 'name attribute' of a worksheet).

Thanks in advance,
Simon

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default referencing the name of a worksheet

I am trying to do the same thing. So say in cell A1 of worksheet "Fibre" I
want cell A1 to return the tab or worksheet name "Fibre" If I change the tab
name I want cell A1 to change to whatever I call the tab. I am not
understanding your formula. Would you be able to explain it to me
differently.
Thanks

"JMB" wrote:

try

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

which returns "Sheet2"

"Simon P California" wrote:

How can I refer to the 'name' of a worksheet in a cell.
So that if I change the name of the worksheet, the new name will be
reflected in that cell.

(like worksheet1.name, reference the 'name attribute' of a worksheet).

Thanks in advance,
Simon

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default referencing the name of a worksheet

Guys,
I'm using excel 2003 SP3.

When I use the above formula on multiple worksheets I get a wierd bug.

On sheet 1 it will report "Sheet1" and on Sheet 2 it will give "sheet2"

So if I edit the formula or paste the formula on sheet 2 it will return
"sheet 2" but when I go back to sheet 1 it will be saying "sheet2"!

Help!

"Gord Dibben" wrote:

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

Entered in any cell of a sheet.


Gord Dibben MS Excel MVP

On Tue, 28 Aug 2007 14:36:04 -0700, reference cell to tab/worksheet name
<reference cell to tab/worksheet wrote:

I am trying to do the same thing. So say in cell A1 of worksheet "Fibre" I
want cell A1 to return the tab or worksheet name "Fibre" If I change the tab
name I want cell A1 to change to whatever I call the tab. I am not
understanding your formula. Would you be able to explain it to me
differently.
Thanks

"JMB" wrote:

try

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

which returns "Sheet2"

"Simon P California" wrote:

How can I refer to the 'name' of a worksheet in a cell.
So that if I change the name of the worksheet, the new name will be
reflected in that cell.

(like worksheet1.name, reference the 'name attribute' of a worksheet).

Thanks in advance,
Simon





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default referencing the name of a worksheet

Are you sure you used that exact formula?

I'm guessing that you changed it--maybe dropped the A1 references. Add them
back and try it.

If that doesn't help, post your exact formula.



Stuart wrote:

Guys,
I'm using excel 2003 SP3.

When I use the above formula on multiple worksheets I get a wierd bug.

On sheet 1 it will report "Sheet1" and on Sheet 2 it will give "sheet2"

So if I edit the formula or paste the formula on sheet 2 it will return
"sheet 2" but when I go back to sheet 1 it will be saying "sheet2"!

Help!

"Gord Dibben" wrote:

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

Entered in any cell of a sheet.


Gord Dibben MS Excel MVP

On Tue, 28 Aug 2007 14:36:04 -0700, reference cell to tab/worksheet name
<reference cell to tab/worksheet wrote:

I am trying to do the same thing. So say in cell A1 of worksheet "Fibre" I
want cell A1 to return the tab or worksheet name "Fibre" If I change the tab
name I want cell A1 to change to whatever I call the tab. I am not
understanding your formula. Would you be able to explain it to me
differently.
Thanks

"JMB" wrote:

try

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

which returns "Sheet2"

"Simon P California" wrote:

How can I refer to the 'name' of a worksheet in a cell.
So that if I change the name of the worksheet, the new name will be
reflected in that cell.

(like worksheet1.name, reference the 'name attribute' of a worksheet).

Thanks in advance,
Simon




--

Dave Peterson
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
Referencing a Worksheet newguy Excel Discussion (Misc queries) 3 December 12th 06 07:31 PM
3-D Worksheet referencing Ross M. Greenberg Excel Discussion (Misc queries) 5 May 7th 06 06:15 PM
CountIF() in Worksheet B while referencing cells in Worksheet A jfj3rd Excel Worksheet Functions 3 April 14th 06 11:24 PM
CountIF() in Worksheet B while referencing cells in Worksheet A jfj3rd Excel Worksheet Functions 3 April 14th 06 07:36 PM
Referencing a worksheet name Greg114 Excel Worksheet Functions 3 March 23rd 05 10:23 PM


All times are GMT +1. The time now is 04:26 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"