Excel: CLOSE.ALL in an Auto_Close Macro Generates ErrorLast reviewed: November 30, 1994Article ID: Q79139 |
The information in this article applies to:
SUMMARYAttempting to close Microsoft Excel from the application Control menu (-) with a worksheet open that contains an Auto_Close macro may result in a macro error. The error occurs if the Auto_Close macro executes a CLOSE.ALL command. The error also occurs if the Auto_Close macro executes a QUIT command.
MORE INFORMATIONThe same error occurs if you attempt to close Microsoft Excel using the File Exit command, or if you attempt to close all worksheets by choosing Close All from the File menu.
WorkaroundClose the worksheet by choosing Close from the File Menu or from the worksheet's Control menu (-). This will envoke the Auto_Close macro and the CLOSE.ALL or QUIT command will execute correctly.
REFERENCES"Microsoft Excel Function Reference," version 3.0, page 32
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |