Hi,
So I have 3 macros in a workbook, each of which has the condition set as If ActiveSheet.CodeName = "XXX" Then ...
The problem is that for one of them the macro still runs in every worksheet. I have tried both activesheet.name and codename with no luck.
If I change between the 2, it will work only once and the the macro will run in every worksheet afterwards.
Below is the macro:
Any help will be appreciated.![]()
Please Login or Register to view this content.
Bookmarks