Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JR JR is offline
external usenet poster
 
Posts: 92
Default Function that returns worksheet name and updates on rename.

I have built a function that reads the name of a worksheet and displays it in
the cell. Once you rename the worksheet, however, the function does not
update. Does anyone know how to invoke the updating of this function when
the event of renaming the sheet occurs? Also, I would like to use this same
function on many different worksheets so it can't look update the functions
on all sheets with the name of the one activesheet.

Thanks,
joe
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Function that returns worksheet name and updates on rename.

Public Function wname()
Application.Volatile
wname = Application.Caller.Parent.Name
End Function


--
Regards,
Tom Ogilvy


"jr" wrote in message
...
I have built a function that reads the name of a worksheet and displays it

in
the cell. Once you rename the worksheet, however, the function does not
update. Does anyone know how to invoke the updating of this function

when
the event of renaming the sheet occurs? Also, I would like to use this

same
function on many different worksheets so it can't look update the

functions
on all sheets with the name of the one activesheet.

Thanks,
joe



  #3   Report Post  
Posted to microsoft.public.excel.programming
JR JR is offline
external usenet poster
 
Posts: 92
Default Function that returns worksheet name and updates on rename.

It works great. Thanks.

"Tom Ogilvy" wrote:

Public Function wname()
Application.Volatile
wname = Application.Caller.Parent.Name
End Function


--
Regards,
Tom Ogilvy


"jr" wrote in message
...
I have built a function that reads the name of a worksheet and displays it

in
the cell. Once you rename the worksheet, however, the function does not
update. Does anyone know how to invoke the updating of this function

when
the event of renaming the sheet occurs? Also, I would like to use this

same
function on many different worksheets so it can't look update the

functions
on all sheets with the name of the one activesheet.

Thanks,
joe




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Function that returns worksheet name and updates on rename.

You can do this with worksheet functions:

http://www.mcgimpsey.com/excel/formu..._function.html



In article ,
"jr" wrote:

I have built a function that reads the name of a worksheet and displays it in
the cell. Once you rename the worksheet, however, the function does not
update. Does anyone know how to invoke the updating of this function when
the event of renaming the sheet occurs? Also, I would like to use this same
function on many different worksheets so it can't look update the functions
on all sheets with the name of the one activesheet.

Thanks,
joe

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
VLOOKUP worksheet function returns zero for empty cells Hershmab Excel Worksheet Functions 4 April 12th 12 07:48 PM
Function that returns worksheet name? [email protected] Excel Worksheet Functions 4 January 11th 07 06:37 PM
month worksheet function returns wrong value Barry Excel Worksheet Functions 6 January 28th 06 12:37 AM
Function that Returns Worksheet Name Moset Excel Discussion (Misc queries) 3 July 12th 05 04:07 PM
Is there a function that returns just the worksheet name Bene Excel Worksheet Functions 8 May 17th 05 11:10 AM


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