WdProtectedViewCloseReason enumeration (Word)

Specifies how the Protected View window was closed.

Name Value Description
wdProtectedViewCloseEdit 1 The window was closed when the user clicked the Enable Editing or Edit Anyway button while in Protected View.
wdProtectedViewCloseForced 2 The window was closed because the application shut it down forcefully or it stopped responding.
wdProtectedViewCloseNormal 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.