Share via


Hyperlink Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.


Aa661446.parchild(en-us,office.10).gifHyperlink
Aa661446.space(en-us,office.10).gifAa661446.parchild(en-us,office.10).gif

Represents a hyperlink. The Hyperlink object is a member of the Hyperlinks collection.

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

  Worksheets(1).Shapes(1).Hyperlink.Follow NewWindow:=True

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

  Worksheets(1).Range("A1:B2").Hyperlinks(2).Follow