AddHyperlink method

Microsoft Visio Developer Reference

AddHyperlink method

       

Adds a Hyperlink object to a Microsoft Visio shape.

Version added

5.0

Syntax

objRet = object.AddHyperlink

objRet

The Hyperlink object that is returned.

object

Required. An expression that returns a Shape object.

Remarks

Using the AddHyperlink method is equivalent to adding a hyperlink to a shape by clicking Hyperlinks on the Insert menu.

If a Hyperlink object already exists for the shape, then a reference to the existing Hyperlink object is returned.