XlProtectedViewCloseReason enumeration (Excel)

Specifies how the Protected View window was closed.

Name Value Description
xlProtectedViewCloseEdit 1 The window was closed when the user clicked the Enable Editing button.
xlProtectedViewCloseForced 2 The window was closed because the application shut it down forcefully or stopped responding.
xlProtectedViewCloseNormal 0 The window was closed normally.

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.