Viewer.HyperlinkAddress property (Visio Viewer)

Gets the address of the specified hyperlink associated with the specified shape in the drawing that is open in Microsoft Visio Viewer. Read-only.

Syntax

expression.HyperlinkAddress (ShapeIndex, HyperlinkIndex)

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 that is open in Visio Viewer.
HyperlinkIndex Required Long The index of the specified hyperlink in the collection of hyperlinks in the specified shape in the drawing that is open in Visio Viewer.

Return value

String

Remarks

The collections of shapes and hyperlinks are one-based, so the indexes of the first shape in the collection of shapes and the first hyperlink in the collection of hyperlinks are both 1.

The address returned may be a URL or a local file address, depending on the target of the hyperlink. To follow the hyperlink address returned, use the FollowHyperlink method or another link-navigation method exposed in your browser's application programming interface (API).

Example

The following code shows how to get the address of the first hyperlink in the collection of hyperlinks associated with the first shape in the collection of shapes in the drawing that is open in Visio Viewer.

Debug.Print Viewer1.HyperlinkAddress(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.