AppEvents.WorkbookBeforeClose Method
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub WorkbookBeforeClose ( _
Wb As Workbook, _
<OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As AppEvents
Dim Wb As Workbook
Dim Cancel As Boolean
instance.WorkbookBeforeClose(Wb, Cancel)
void WorkbookBeforeClose(
Workbook Wb,
out bool Cancel
)
Parameters
- Cancel
Type: System.Boolean