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

Jerry,

There is no event for this.

If you are worried about a user changing a sheet name that you use in the
code, then use the sheet CodeName instead. If you look in the VB IDE each
sheet has 2 names, the one in brackets is what the user sees, and can
change, the other is the Codename, and cannot be changed by the user. They
both start with the same value.

To use it try

Sheet1.Activate

instead of

Worksheets("Sheet1").Activate

as an example.

--

HTH

Bob Phillips

"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.




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
Change of Row event crazybass2 Excel Discussion (Misc queries) 7 December 7th 04 06:21 PM


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