SelectAllEditableRanges Method
TOC
Collapse the table of content
Expand the table of content

Document.SelectAllEditableRanges Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Selects all ranges for which the specified user or group of users has permission to modify.

expression .SelectAllEditableRanges(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 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.

The following example selects all ranges for which the current user has permission to modify.

ActiveDocument.SelectAllEditableRanges wdEditorCurrent
Show:
© 2016 Microsoft