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. .
expression.Add (EditorID)
expression Required. A variable that represents an 'Editors' collection.
Name | Required/Optional | Data type | Description |
---|---|---|---|
EditorID | Optional | Variant | Can be either a String that represents the user's email alias (if in the same domain), an email address, or a WdEditorType that represents a group of users. |
The following example gives editing permissions for the selected text to the current user.
Dim objEditor As Editor
Set objEditor = Selection.Editors.Add(wdEditorCurrent)
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.