Remarks

The Hyperlink object is a member of the collection.

Example

Use the property to return the hyperlink for a shape (a shape can have only one hyperlink). The following example activates the hyperlink for shape one.

Visual Basic for Applications
Worksheets(1).Shapes(1).Hyperlink.Follow NewWindow:=True

A range or worksheet can have more than one hyperlink. Use (), where is the hyperlink number, to return a single Hyperlinkobject. The folllowing example activates hyperlink two in the range A1:B2.

Visual Basic for Applications
Worksheets(1).Range("A1:B2").Hyperlinks(2).Follow
Documentation on hyperlink? Hyper Link Object hyperlink object

See also:

index index