Value | Action |
True | Saves the changes to the workbook. If there is not yet a file name associated with the workbook, then FileName is used. If FileName is omitted, the user is asked to supply a file name. |
False | Does not save the changes to this file. |
Omitted | Displays a dialog box asking the user whether or not to save changes. |
Value | Meaning |
True | Sends the workbook to the next recipient. |
False | Doesn't send the workbook. |
Omitted | Displays a dialog box asking the user whether the workbook should be sent. |
Workbooks("BOOK1.XLS").Close SaveChanges:=False
This example closes all open workbooks. If there are changes in any open workbook, Microsoft Excel displays the appropriate prompts and dialog boxes for saving changes.
Workbooks.Close