"Can't Execute Code in Break Mode" When Running Macro (177828)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q177828 SYMPTOMS
In the versions of Microsoft Excel listed above, if you attempt to run a
macro, one or more of the following problems may occur:
CAUSE
These problems will occur if, when you attempt to run a macro, another
macro is currently in break mode. This may occur if you have added a
breakpoint to a macro by selecting a line of code and pressing F9, or if a
macro contains the following line of code:
Stop
RESOLUTION
To exit break mode, activate the Visual Basic Editor by clicking the Tools
menu, pointing to Macro, and clicking Visual Basic Editor. Then, either:
- On the Standard toolbar, click the Reset button. This halts all macro
execution.
-or-
- Either click the Continue tool on the Standard toolbar or press F5.
The halted macro will continue its execution.
STATUS
This behavior is by design of the versions of Microsoft Excel listed at
the beginning of this article; it is not possible to run a Visual Basic
macro when another macro is in break mode.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kberrmsg kbprb KB177828 |
---|
|