GoToEditableRange Method

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. An expression that returns one of the objects in the Applies To list.

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 NextRange property of the Editor object to return the next range for which the user has permission to modify.

Example

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

Selection.GoToEditableRange wdEditorCurrent

Applies to | Range Object | Selection Object