Editor Object

Microsoft Word Visual Basic

Editor Object

Editors Editor
Range

Represents a single user who has been given specific permissions to edit portions of a document. Users who can be given permissions include individual contributors and groups of users as defined for Document Workspace sites.

Note  The permissions you assign to ranges and selections go into effect only after a document is protected. Use the Editors collection and the Editor object to assign specific permissions to sections of a document. Then use the Protect method to protect the document.

Using the Editor Object

Use the Add method of the Editors collection to give a specified user or group permission to modify a range or selection within a document. The following example gives the current user editing permission to modify the active selection.

    Dim objEditor As Editor

Set objEditor = Selection.Editors.Add(wdEditorCurrent)