Share via


IAppEvents.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 IAppEvents
Dim Wb As Workbook
Dim Cancel As Boolean

instance.WorkbookBeforeClose(Wb, Cancel)
void WorkbookBeforeClose(
    Workbook Wb,
    out bool Cancel
)

Parameters

See Also

Reference

IAppEvents Interface

IAppEvents Members

Microsoft.Office.Interop.Excel Namespace