Hi
I run a macro in a project containing many subs and functions, including an AutoOpen. The AutoOpen triggers unexpectedly. I try to track down the line of code that caused it to trigger:
- I look in the stack, but it only goes back to AutoOpen.
- I try disabling auto macros by putting “Wordbasic.DisableAutoMacros 1/0” at the beginning and end of the subroutine containing the MsgBox. No joy.
- I progressively move a Stop statement around until I find the apparent trigger. It’s a simple MsgBox statement.
- If I put the Stop statement one line before the MsgBox, the macros stop at that point, as expected. If I put it one line after, I get “cannot execute in break mode” (presumably because the AutoOpen tried to execute).[/list]Any ideas?
Dale