Viewer.ReviewerName property (Visio Viewer)

Gets the name of the specified reviewer in the drawing that is open in Microsoft Visio Viewer. Read-only.

Syntax

expression.ReviewerName (ReviewerIndex)

expression An expression that returns a Viewer object.

Parameters

Name Required/Optional Data type Description
ReviewerIndex Required Long The index of the reviewer in the collection of reviewers.

Return value

String

Remarks

The collection of reviewers is one-based, so the index of the first reviewer in the collection is 1. If there are no reviewers in the drawing, or if you pass the index of a nonexistent reviewer, Visio Viewer returns an error.

Example

The following code gets the names of all reviewers in the drawing that is open in Visio Viewer.

Dim intCounter As Integer

    For intCounter = 1 To Viewer1.ReviewerCount

    Debug.Print Viewer1.ReviewerName(intCounter)

Next intCounter

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.