Excel Macro to Close All Open Worksheets Except for the MacroLast reviewed: November 30, 1994Article ID: Q66017 |
The information in this article applies to:
SUMMARYTo close all open worksheets except for the macro sheet in a macro, protect the macro sheet's window prior to executing the CLOSE.ALL function. The following is an example:
=ACTIVATE("MACRO1.XLM") =PROTECT.DOCUMENT(,TRUE) =CLOSE.ALL() =PROTECT.DOCUMENT(,FALSE) |
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |