Excel: Avoiding "Save Changes" Dialog when Closing DocumentLast reviewed: November 2, 1994Article ID: Q31700 |
SUMMARYTo close a document through a macro and have Excel automatically save the document (without bringing up the dialog box: "Do you want to save changes?"), do the following:
=CLOSE(TRUE)To close a document through a macro and not save any changes made, use
=CLOSE(FALSE) MORE INFORMATIONIn Excel versions 1.00-1.06, there is no parameter for the CLOSE function. To close a document through a macro and have it save automatically in these versions, use the following:
=SAVE() =CLOSE()To close a document and not save the changes through a macro in versions 1.00-1.06, use:
=ERROR(FALSE) =CLOSE() =ERROR(TRUE) |
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |