What can inhibit an event handler?

A

Al

XL2003 on XP
In one instance of Excel, I had two files open and then opened a third file
that has a macro that should fire on workbook_open. For some reason, this
macro did not run. I closed the third file and tried this twice more with no
success. In a second instance of Excel I opened this file and the macro
fired.

I know that if I had a macro running (or stopped for some reason) and I
opened the third file, I would not expect its workbook_open event handler to
run. I know that wasn’t the case here. Does anyone know of anything else
that could cause this to happen? It’s not a show stopper, but it certainly
has me puzzled.
 
O

OssieMac

Just a thought. You haven't run a macro with Application.Enable.Events =
false and then not turned the events back on again with
Application.Enable.Events = true?
 
A

Al

That's it! I had interrupted an original macro to do some debugging and
forgot that it never ran all the way to reset the switch.

Thanks, OssieMac.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top