troubleshooting Question

Excel macro execution jumps to VBE window as if a breakpoint has been set.

Avatar of Jeff Geiselman
Jeff GeiselmanFlag for United States of America asked on
Microsoft Excel
8 Comments1 Solution547 ViewsLast Modified:
I periodically have different users call up and say that they have the VBE window appear while running a macro.
When I look at their monitor, the syntax line it stopped at is highlighted in yellow, as if a breakpoint had been set there.
They will either get no message at all or 'excecution interrupted' dialog box.  They do not get the 'End' 'Debug' dialog box that normally appears when an error occurs.

They have not pressed the 'Esc' or 'Ctrl-Break' keys either to pause the macro.
If the F5 (Run Sub/Userform) key is pressed, excecution continues and finishes normally.
If Excel is restarted and the macro is re-run, the code breaks at the same point in the code.
If the PC is rebooted, the macro then runs normally for a number of days or weeks depending on how frequently they run the macro.

This happens to different macros on different PC's, and usually having the user reboot weekly prevents the issue from reoccuring.
Recently one user continues to have the problem even after rebooting.  So I am looking for advice.

As a point of reference most of the PC's are running Excel 2003 (no 2007) on Windows XP SP3;  'Tools-Options' is set to 'Break on Unhandled Errors'
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros