Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Sheet Name Change Event?


"Jerry Park" wrote in message
. ..
Is there an event which will trigger when a worksheet's name is changed?

I want to show/hide some columns depending on the name of the worksheet.
The Workbook_SheetActivate() event will almost do what I want, but I
really need to just know when the name changes.

(The worksheets are named by month and year. When a new sheet is created
from, for example, 'August 2003' and renamed 'September 2003', I want to
hide the column which represents September 31, 2003.)

Thanks.


I'm not aware of such an event. Maybe you should consider automating
the creation of the new sheet in code so you can then control how it
happens, e.g. with a button somewhere called "Make sheet for next month"
which would then run the necessary code. Another option might be to keep
track of sheet names on a worksheet somewhere and then check each time the
sheet of interest is activated to see if its name has changed. Then do
the update and update the sheet name. Problem with this approach (as you
point out), though is that it would lag the actual event, not happening
until the next time the sheet was activated which would be sort of crude.
Hope this helps.

Bob L.


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
Worksheet Change Event - copy cell to another sheet dhstein Excel Discussion (Misc queries) 2 October 12th 09 06:35 PM
Cancel sheet change event NSK Charts and Charting in Excel 1 July 17th 07 08:25 PM
change event smonsmo Excel Discussion (Misc queries) 1 June 8th 07 09:31 PM
Change event? Mike Rogers Excel Discussion (Misc queries) 2 January 5th 06 01:46 AM
Sheet Name Change Event? Bob Phillips[_5_] Excel Programming 0 August 18th 03 09:57 PM


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