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

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim EditorID As Object
Dim returnValue As Range
Dim selection1 As Selection
returnValue = selection1.GoToEditableRange(EditorID)

Syntax

Function GoToEditableRange( _
    <InAttribute()> Optional ByRef EditorID As Object _
) As Range
Range GoToEditableRange(
    [In, Optional] ref object EditorID
);
public: Range^ GoToEditableRange(
    &Object^ EditorID
);
public Range GoToEditableRange(
    /*in*/System.Object EditorID
);
function GoToEditableRange(
     EditorID : Object
) : Range;

Parameters

  • EditorID
    Optional Object. Can be 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.

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Selection Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Selection Members