Editors.Add Method (Word)

Returns an Editor object that represents a new permission for a specified user to modify a range or selection within a document. .

Syntax

expression .Add(EditorID)

expression Required. A variable that represents an Editors collection.

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 that represents a group of users.

Example

The following example gives editing permissions for the selected text to the current user.

Dim objEditor As Editor 
 
Set objEditor = Selection.Editors.Add(wdEditorCurrent)

See Also

Concepts

Editors Object Members

Editors Collection