PC Review


Reply
Thread Tools Rate Thread

CELL Function and Worksheet Name in a Cell

 
 
David
Guest
Posts: n/a
 
      8th Jul 2006
I have a workbook with 23 worksheets.

I need the worksheet name to be automatically inserted into a
cell on each worksheet.

Worksheet names are all 5 characters - example is 14-01

I'm using =Right(Cell("Filename"),5)

It works - sort of. But does not automatically calculate. When I
recalculate every worksheet gets the same value (the number of
the active worksheet when I press F9)

Is this just a quirk of Excel, or is there another way to do it?

Thanks for any help.
 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      8th Jul 2006
OK - I solved my own problem.

Change the formula to be:

=Right(Cell("Filename",B5),5) where B5 is the cell where the
formula is.


David wrote:
> I have a workbook with 23 worksheets.
>
> I need the worksheet name to be automatically inserted into a cell on
> each worksheet.
>
> Worksheet names are all 5 characters - example is 14-01
>
> I'm using =Right(Cell("Filename"),5)
>
> It works - sort of. But does not automatically calculate. When I
> recalculate every worksheet gets the same value (the number of the
> active worksheet when I press F9)
>
> Is this just a quirk of Excel, or is there another way to do it?
>
> Thanks for any help.

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      8th Jul 2006
David

You can use any cell reference.....but you must use one, as you have discovered.


Gord Dibben MS Excel MVP

On Sat, 08 Jul 2006 13:22:31 -0700, David <(E-Mail Removed)> wrote:

>OK - I solved my own problem.
>
>Change the formula to be:
>
>=Right(Cell("Filename",B5),5) where B5 is the cell where the
>formula is.
>
>
>David wrote:
>> I have a workbook with 23 worksheets.
>>
>> I need the worksheet name to be automatically inserted into a cell on
>> each worksheet.
>>
>> Worksheet names are all 5 characters - example is 14-01
>>
>> I'm using =Right(Cell("Filename"),5)
>>
>> It works - sort of. But does not automatically calculate. When I
>> recalculate every worksheet gets the same value (the number of the
>> active worksheet when I press F9)
>>
>> Is this just a quirk of Excel, or is there another way to do it?
>>
>> Thanks for any help.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need function to insert worksheet name into a cell of that worksheet. August Meduna Microsoft Excel Misc 2 9th Oct 2004 12:57 AM
Place The Contents Of A Cell From The Active Worksheet Into A Cell On An Inavtive Worksheet Minitman Microsoft Excel Programming 1 25th Feb 2004 04:26 AM
Place The Contents Of A Cell From The Active Worksheet Into A Cell On An Inavtive Worksheet Minitman Microsoft Excel Worksheet Functions 1 25th Feb 2004 04:26 AM
Place The Contents Of A Cell From The Active Worksheet Into A Cell On An Inavtive Worksheet Minitman Microsoft Excel Misc 1 25th Feb 2004 04:26 AM
Function to name a worksheet after a cell? Brian Microsoft Excel Worksheet Functions 11 20th Dec 2003 11:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:13 PM.