The information in this article applies to:
SUMMARY
If it is necessary to stop an Auto_Close macro (while debugging a
macro or after a question dialog box), using the function HALT(TRUE)
will stop the macro and prevent the macro sheet from closing.
MORE INFORMATION
The structure for the HALT function is as follows:
"Cancel_close" is a logical value that specifies whether the macro sheet, when encountering the HALT function in an Auto_Close macro, is closed. If "cancel_close" is TRUE, Excel halts the macro and prevents the document from closing. If "cancel_close" is FALSE or omitted, Excel halts the macro and closes the document. REFERENCESFor more information on the HALT function, see page 217 of the "Microsoft Excel Function Reference" version 4.0 manual or page 120 of the "Microsoft Excel Function Reference" version 3.0 manual. Additional query words: 4.00
Keywords : |
Last Reviewed: March 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |