Viewer.FollowHyperlink method (Visio Viewer)

Follows the hyperlink at the specified index in the specified shape in Microsoft Visio Viewer.

Syntax

expression.FollowHyperlink (ShapeIndex, HyperlinkIndex)

expression An expression that returns a Viewer object.

Parameters

Name Required/Optional Data type Description
ShapeIndex Required Long The index of the shape that contains the hyperlink.
HyperlinkIndex Required Long The index of the hyperlink in the collection of hyperlinks in the specified shape.

Return value

Nothing

Remarks

The collection of hyperlinks is one-based, so the first hyperlink in the collection is at index position 1. If you pass 0 for HyperlinkIndex, Visio Viewer navigates to the default hyperlink for the shape, as set in the Hyperlinks dialog box (Insert menu) in the current Visio document.

Example

The following code follows the hyperlink in the first index position in the collection of hyperlinks in the first shape on the page in Visio Viewer.

vsoViewer.FollowHyperlink 1, 1

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.