Excel: Using HALT to Stop an Auto_Close Macro in 3.00ID: Q67473
|
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.
NOTE: Halting an Auto_Close macro requires Excel 3.00 or later. Using
Auto_Close in earlier versions of Excel can cause unpredictable
results or loss of data.
The structure for the HALT function is as follows:
HALT(cancel_close)
For 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 :
Version :
Platform :
Issue type :
Last Reviewed: March 21, 1999