Application.ProtectedViewWindowBeforeClose Event (PowerPoint)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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.

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

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

Show: