Viewer.OnReviewerChanged event (Visio Viewer)

Occurs when the visibility of a particular reviewer's markup (comments) is changed in Microsoft Visio Viewer.

Syntax

expression.OnReviewerChanged (ReviewerIndex, ReviewerVisible)

expression An expression that returns a Viewer object.

Parameters

Name Required/Optional Data type Description
ReviewerIndex Required Long The index of the reviewer.
ReviewerVisible Required Boolean Indicates whether markup of the reviewer is visible in the user interface.

Return value

Nothing

Remarks

The collection of reviewers in the Viewer is one-based, so the index of the first reviewer in the collection is 1.

You can specify whether markup of a reviewer is visible in the Visio Viewer user interface by setting the ReviewerMarkupVisible property.

The OnReviewerChanged event occurs when markup overlays of a specific reviewer are set to be visible or not visible.

The OnMarkupOverlaysVisibleChanged event occurs when markup overlays for all reviewers in a drawing are set to be visible or not visible.

Example

The following code shows how to use the OnReviewerChanged event to print a message in the Immediate window identifying the reviewer and stating the visibility status of the reviewer's markup.

Private Sub vsoViewer_OnReviewerChanged(ByVal ReviewerIndex As Long, ByVal ReviewerVisible As Boolean)

    If ReviewerVisible Then

        Debug.Print "Reviewer "; vsoViewer.ReviewerName(ReviewerIndex); " markup is visible."

    Else

        Debug.Print "Reviewer "; vsoViewer.ReviewerName(ReviewerIndex); " markup is not visible."

    End If

End Sub

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.