Purpose
Occurs before any open workbook is saved.
Syntax
WorkbookBeforeSave(Wb, SaveAsUI, Cancel)
Required Parameters
Wb
The workbook.
SaveAsUI
True if the Save As dialog box will be displayed.
Cancel
False when the event occurs. If the event procedure sets this argument to True, the workbook isn't saved when the procedure is finished.