View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
JockW JockW is offline
external usenet poster
 
Posts: 32
Default Application EnableEvents

Hi
Your code will be reset when the workbook is opened again.

You could add:

Sub reset()
Application.EnableEvents = True
End Sub


to tour worksheet code.
If your code is stopped for whatever reason, press <Alt + <F8 and select
this sub to re-enable your code.
Saves shutting down and starting again.
hth.
Jock



"B Lynn B" wrote:

If I set EnableEvents to False while my code is running, and then
accidentally exit the code without setting back to True - does this property
get reset to True when Excel is closed? My testing seems to verify that it
does, but I'm at a point where I could use confirmation. Thanks!