Document.DeleteAllEditableRanges method (Word)
Deletes permissions in all ranges for which the specified user or group of users has permission to modify.
Syntax
expression. DeleteAllEditableRanges
( _EditorID_
)
expression Required. A variable that represents a Document object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
EditorID | Optional | Variant | Can be either a String that represents the user's email alias (if in the same domain), an email address, or a WdEditorType constant that represents a group of users. If omitted, no permissions are deleted from a document. |
Remarks
You can also use the DeleteAll method 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
See also
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.