AppEvents_WorkbookBeforeSaveEventHandler AppEvents_WorkbookBeforeSaveEventHandler AppEvents_WorkbookBeforeSaveEventHandler Delegate

Definition

A Delegate type used to add an event handler for the WorkbookBeforeSave event. The WorkbookBeforeSave event occurs before any open workbook is saved.

public delegate void AppEvents_WorkbookBeforeSaveEventHandler(Workbook ^ Wb, bool SaveAsUI, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void AppEvents_WorkbookBeforeSaveEventHandler(Workbook Wb, bool SaveAsUI, out bool Cancel);
Public Delegate Sub AppEvents_WorkbookBeforeSaveEventHandler(Wb As Workbook, SaveAsUI As Boolean, ByRef Cancel As Boolean)
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.

Inheritance
AppEvents_WorkbookBeforeSaveEventHandlerAppEvents_WorkbookBeforeSaveEventHandlerAppEvents_WorkbookBeforeSaveEventHandler
Attributes

Applies to