Application.ProtectedViewWindowBeforeClose event (PowerPoint)

Occurs immediately before a Protected View window or a document in a Protected View window closes.

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.

See also

Application Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.