DeleteAllEditableRanges Method
Deletes permissions in all ranges for which the specified user or group of users has permission to modify.
expression.DeleteAllEditableRanges(EditorID)
expression Required. An expression that returns a Document object.
WdEditorType
wdEditorType can be one of the following wdEditorType constants.
wdEditorCurrent Represents the current user of the document. |
wdEditorEditors Represents the Editors group for documents that use Information Rights Management. |
wdEditorEveryone Represents all users who open a document. |
wdEditorOwners Represents the Owners group for documents that use Information Rights Management. |
Remarks
You can also use the DeleteAll method for the Editor object to delete permissions in all ranges for which a specified user or group of users has permission to modify.
Example
The following example deletes all permissions in all ranges for the current user.
ActiveDocument.DeleteAllEditableRanges wdEditorCurrent
Applies to | Document Object