Viewer.HyperlinkCount property (Visio Viewer)

Gets the count of hyperlinks associated with the shape at the specified index in the document open in Microsoft Visio Viewer. Read-only.

Syntax

expression.HyperlinkCount (ShapeIndex)

expression An expression that returns a Viewer object.

Parameters

Name Required/Optional Data type Description
ShapeIndex Required Long The index of the specified shape in the collection of shapes in the drawing open in Visio Viewer.

Return value

Long

Remarks

The collection of shapes is one-based, so the index of the first shape in the collection is 1.

Example

The following code gets the count of hyperlinks associated with the first shape in the collection of shapes in the drawing open in Visio Viewer.

Debug.Print vsoViewer.HyperlinkCount(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.