Article ID: 157103
Article Last Modified on 11/23/2006
APPLIES TO
- Microsoft Excel 97 Standard Edition
This article was previously published under Q157103
SYMPTOMS
In Microsoft Excel 97, if a macro closes a workbook (even its own workbook)
that contains running macros, the macros stop running immediately.
Depending on how your macros are written, this may cause problems.
CAUSE
This occurs in Microsoft Excel 97 because macros in the workbook
immediately halt execution when a workbook is closed.
This behavior is by design of Microsoft Excel.
RESOLUTION
This new behavior should only cause problems if a macro closes a workbook
(even its own workbook) that contains a running macro. Look for the
following commands in your macros:
ThisWorkbook.Close
ActiveWorkbook.Close
If your macros contain either of these commands, you may be closing
workbooks that contain running macros. You should examine your macros to
make sure you are not trying to run macro commands in a workbook after it
is closed.
Additional query words: XL97 vba vbe
Keywords: kbdtacode kbfaq kbprb kbprogramming KB157103