Protection
| wdProtectedViewCloseReason | Specifies how the Protected View window was closed. |
| wdProtectionType | Specifies the type of protection applied to a document. |
| wdProtectedViewCloseReason Specifies how the Protected View window was closed. |
| wdProtectionType Specifies the type of protection applied to a document. |
wdProtectedViewCloseReason |
| Specifies how the Protected View window was closed. |
| wdProtectedViewCloseEdit | The window was closed when the user clicked the Enable Editing or Edit Anyway button while in Protected View (1) |
| wdProtectedViewCloseForced | The window was closed because the application shut it down forcefully or it stopped responding (2) |
| wdProtectedViewCloseNormal | The window was closed normally (0) |
| wdProtectedViewCloseEdit |
| The window was closed when the user clicked the Enable Editing or Edit Anyway button while in Protected View (1) |
| wdProtectedViewCloseForced |
| The window was closed because the application shut it down forcefully or it stopped responding (2) |
| wdProtectedViewCloseNormal |
| The window was closed normally (0) |
| REMARKS |
| * Added in 2010. |
wdProtectionType |
| Specifies the type of protection applied to a document. |
| wdNoProtection | Do not apply any protection to this document (No Protection) (-1) |
| wdAllowOnlyRevisions | Allow only revisions to be made to existing content (Track Changes) (0) |
| wdAllowOnlyComments | Allow only comments to be added to the document (Comments) (1) |
| wdAllowOnlyFormFields | Allow content to be added to the document through form fields (Filling in Forms) (2) |
| wdAllowOnlyReading | (Added in 2003) Allow read only access to the document (No changes Read Only) (3) |
| wdNoProtection |
| Do not apply any protection to this document (No Protection) (-1) |
| wdAllowOnlyRevisions |
| Allow only revisions to be made to existing content (Track Changes) (0) |
| wdAllowOnlyComments |
| Allow only comments to be added to the document (Comments) (1) |
| wdAllowOnlyFormFields |
| Allow content to be added to the document through form fields (Filling in Forms) (2) |
| wdAllowOnlyReading |
| (Added in 2003) Allow read only access to the document (No changes Read Only) (3) |
| REMARKS |
| * The wdNoProtection cannot be used in Word 2002 - seems to generate an error when passed to "gApplication.ActiveDocument.Protect(objprotectiontype)" |
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top