AppEvents_WorkbookBeforeCloseEventHandler AppEvents_WorkbookBeforeCloseEventHandler AppEvents_WorkbookBeforeCloseEventHandler Delegate

Definition

A Delegate type used to add an event handler for the WorkbookBeforeClose event. The WorkbookBeforeClose event occurs immediately before any open workbook closes.

public delegate void AppEvents_WorkbookBeforeCloseEventHandler(Workbook ^ Wb, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void AppEvents_WorkbookBeforeCloseEventHandler(Workbook Wb, out bool Cancel);
Public Delegate Sub AppEvents_WorkbookBeforeCloseEventHandler(Wb As Workbook, ByRef Cancel As Boolean)
Parameters
Wb

The workbook that's being closed.

Cancel

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

Inheritance
AppEvents_WorkbookBeforeCloseEventHandlerAppEvents_WorkbookBeforeCloseEventHandlerAppEvents_WorkbookBeforeCloseEventHandler
Attributes

Applies to