What Application Events fire on a Sheet name change?

BrighterLater

Board Regular
Joined
Sep 16, 2005
Messages
114
Please can you tell me what Application Events fire when I rename a sheet?
I was expecting Sheetchange to fire but it does not seem to
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
There are none, as far as I know.

The SheetChange event is for changes in the cells on that sheet, not the sheet name itself.
 

Greg Truby

MrExcel MVP
Joined
Jun 19, 2002
Messages
10,022
<strike>AFAIK, Kristy is correct, no events fire when sheets get renamed. You'd have to create a static or module-level array of sheet names and compare it during some other event like SheetSelectionChange or SheetActivate and so forth.</strike> {...nevermind - Tom's got it covered...}
 

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
Ok, to specify: there are no *built in* events that will be triggered on a sheet name change. :)
 

BrighterLater

Board Regular
Joined
Sep 16, 2005
Messages
114
Thanks for all the help. The constancy of the codename property is exactly what I was looking for. I have a collection which contains an object for each sheet and each object contains several properties for the sheet. By referencing this collection by the codename I can do what I want and handle new sheets, deleted sheets and sheet name change. Many thanks
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,003
Messages
5,834,828
Members
430,324
Latest member
bosphoruskid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top