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
Workbook

The workbook.

SaveAsUI
Boolean

True if the Save As dialog box will be displayed.

Cancel
Boolean

False when the event occurs. If the event procedure sets this argument to True, the workbook isn't saved when the procedure is finished.

Attributes

Applies to