Class Reviewer (Word VBA)

The class Reviewer represents a single reviewer of a document in which changes have been tracked. The Reviewer object is a member of the Reviewers collection.

Set

To use a Reviewer class variable it first needs to be instantiated, for example

Dim rvw as Reviewer
Set rvw = ActiveWindow.View.RevisionsFilter.Reviewers(Index:=1)

The following procedures can be used to set variables of type Reviewer: Reviewers.Item and RevisionsFilter.Reviewers

For Each

Here is an example of processing the Reviewer items in a collection.

Dim rvw As Reviewer
For Each rvw In ActiveWindow.View.RevisionsFilter.Reviewers
	
Next rvw

Parent

Returns an object that represents the parent object of the specified Reviewer object.

Dim objParent As Object
Set objParent = ActiveWindow.View.RevisionsFilter.Reviewers(1).Parent

Visible

True if the specified object is visible.

Some methods and properties may be unavailable if the Visible property is False.

ActiveWindow.View.RevisionsFilter.Reviewers(1).Visible = True

Reviewers.Count

Returns a Long that represents the number of reviewers in the collection.

Dim lngCount As Long
lngCount = ActiveWindow.View.RevisionsFilter.Reviewers.Count

Reviewers.Item

Returns an individual Reviewer object in a collection.

Syntax : expression.Item (Index)

Index: The individual object to be returned. Can be a Long indicating the ordinal position or a String representing the name of the individual object.

Dim rvw As Reviewer
Set rvw = ActiveWindow.View.RevisionsFilter.Reviewers(Index:=1)

Reviewers.Parent

Returns an object that represents the parent object of the specified Reviewers object.

Dim objParent As Object
Set objParent = ActiveWindow.View.RevisionsFilter.Reviewers.Parent