AppEvents_Event.WorkbookBeforeClose Event

Occurs immediately before any open workbook closes.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Event WorkbookBeforeClose As AppEvents_WorkbookBeforeCloseEventHandler
'Usage
Dim instance As AppEvents_Event
Dim handler As AppEvents_WorkbookBeforeCloseEventHandler

AddHandler instance.WorkbookBeforeClose, handler
event AppEvents_WorkbookBeforeCloseEventHandler WorkbookBeforeClose

See Also

Reference

AppEvents_Event Interface

AppEvents_Event Members

Microsoft.Office.Interop.Excel Namespace