Table of contents
Collapse the table of content
Expand the table of content

Application.ProtectedViewWindowBeforeClose Event (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Occurs immediately before a protected view window or a document in a protected view window closes.


expression. ProtectedViewWindowBeforeClose( ProtViewWindow, ProtectedViewCloseReason, Cancel )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
ProtViewWindowRequiredProtectedViewWindowThe protected view window that is closed.
ProtectedViewCloseReasonRequiredPpProtectedViewCloseReasonA constant that specifies the reason the protected view window is closed.
CancelRequiredBooleanFalse 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



If the ProtectedViewWindowsBeforeClose event is called as part of theProtectedViewWindow.Edit method, setting Cancel to True produces no action.

See also


Application Object

© 2018 Microsoft