Purpose
Occurs immediately before a Protected View window or a workbook in a Protected View window closes.
Syntax
ProtectedViewWindowBeforeClose(Pvw, Reason, Cancel)
Required Parameters
Pvw
An object that represents the Protected View window that is closed.
Reason
A constant that specifies the reason the Protected View window is closed.
Cancel
False when the event occurs. If the event procedure sets this argument to True, the window does not close when the procedure is finished.