Asked By ksurvel
29-May-07 09:48 AM

I've encountered this in various versions of Word (2002, 2003, and 2007) when
running macros.
When the problem occurs, running any macro, no matter how simple, will cause
the message "Code execution has been interrupted" to appear, as if you had
pressed CTRL-BREAK. It will continue to occur throughout the macro, at random
points. If you click "Continue," it will run a little bit more, then break
again. If you click "Break," you will see that execution has stopped on some
random line. I've made several test macros with stuff like "if 1 = 1" that
(presumably) can't fail, yet it will break on those lines as well.
I have tried "clear all breakpoints" in the VBA editor.
I've tried the usual troubleshooting methods: deleting normal.dot, removing
any add-ins, running a detect & repair, etc. No joy with any of them.
I've had limited success with rebooting the computer - but it is not a
sure-fire fix, as it will resolve the problem on some machines but not
others. I suspect that it is just coincidental that rebooting and the problem
going away happen at the same time - or there may be something else going on
that I can't localize.
I cannot cause the problem to occur on demand (I know this makes it really,
really hard to troubleshoot.)
I've exhausted all the troubleshooting steps I can think of. Does anyone
have any suggestions?