Selection.GoToEditableRange 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.

Returns a Range object that represents an area of a document that can be modified by the specified user or group of users.

expression .GoToEditableRange(EditorID)

expression Required. A variable that represents a Selection 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, selects all ranges for which all users have permissions to edit.

Return Value

Range

You can also use the NextRange property of the Editor object to return the next range for which the user has permission to modify.

The following example goes to the next range for which the current user has permission to modify.

Selection.GoToEditableRange wdEditorCurrent
Show: