Application.ProtectedViewWindowBeforeClose Event (PowerPoint)
Occurs immediately before a protected view window or a document in a protected view window closes.
Version Information
Version Added: PowerPoint 2010
Syntax
expression .ProtectedViewWindowBeforeClose(ProtViewWindow, ProtectedViewCloseReason, Cancel)
expression A variable that represents an Application object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
ProtViewWindow |
Required |
ProtectedViewWindow |
The protected view window that is closed. |
ProtectedViewCloseReason |
Required |
PpProtectedViewCloseReason |
A constant that specifies the reason the protected view window is closed. |
Cancel |
Required |
Boolean |
False when the event occurs. If the event procedure sets this argument to True, the window does not close when the procedure is finished. |
Return Value
nothing
Remarks
If the ProtectedViewWindowsBeforeClose event is called as part of the ProtectedViewWindow.Edit method, setting Cancel to True produces no action.