Share via


AppEvents.ProtectedViewWindowBeforeClose Method

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

Syntax

'Declaration
Sub ProtectedViewWindowBeforeClose ( _
    Pvw As ProtectedViewWindow, _
    Reason As XlProtectedViewCloseReason, _
    <OutAttribute> ByRef Cancel As Boolean _
)
'Usage
Dim instance As AppEvents
Dim Pvw As ProtectedViewWindow
Dim Reason As XlProtectedViewCloseReason
Dim Cancel As Boolean

instance.ProtectedViewWindowBeforeClose(Pvw, _
    Reason, Cancel)
void ProtectedViewWindowBeforeClose(
    ProtectedViewWindow Pvw,
    XlProtectedViewCloseReason Reason,
    out bool Cancel
)

Parameters

See Also

Reference

AppEvents Interface

AppEvents Members

Microsoft.Office.Interop.Excel Namespace