I've come across some code that helps to optimize my vba macros.
It does seem to make a difference in some respects but my problem is that when I run the code, it disables EnableEvents causing all my worksheet change events to stop working. I know this through the immediate window (Ctl-G: ?application.EnableEvents) returning False after every time I run the optimizing code.
I even tested it by putting an Application.EnableEvents = True after the Code_End, but it still shows that EnableEvents = False. Would someone be so kind to help me understand what is going on here? Or point me to a good KB on this. I get what EnableEvents is supposed to do, but not sure what the whole "EventState" means and is doing. Hard to find info on this.
Please Login or Register to view this content.
Please Login or Register to view this content.
Bookmarks