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 email alias (if in the same domain), an email 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
Support and feedback
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for