SelectAllEditableRanges Method
Selects all ranges for which the specified user or group of users has permission to modify.
expression.SelectAllEditableRanges(EditorID)
expression Required. An expression that returns a Document object.
EditorID Optional Variant. Can be either a String that represents the user's e-mail alias (if in the same domain), an e-mail address, or a WdEditorType constant that represents a group of users. If omitted, only ranges for which all users have permissions will be selected.
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. |
Example
The following example selects all ranges for which the current user has permission to modify.
ActiveDocument.SelectAllEditableRanges wdEditorCurrent