I currently have a macro that runs during Worksheet_Activate() that stores the Sheet Name in a Defined Name (and changes it if the Sheet Name has changed).
I then have a formula on a different sheet that points to that Defined Name (there are several formulas on that sheet that point to Defined Names on several sheets).
I then have a macro that reads the Sheet Name from that formula. This macro runs during Worksheet_Calculate().
The problem is if the user changes the Name of the worksheet by right mouse clicking the sheet tab but doesn't activate the sheet the Worksheet_Activate() macro doesn't update the Defined Name and my macro crashes trying to get a Sheet Name that doesn't exist any more.
Is there any formula that returns a Sheet Name, or a way to trap when a user changes the Sheet Name?
Bookmarks