Share via


Hyperlink Object

Multiple objects
Hyperlink
Multiple objects

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

Use the Hyperlink property to return a Hyperlink object associated with a shape (a shape can have only one hyperlink). The following example activates the hyperlink associated with the first shape in the active document.

ActiveDocument.Shapes(1).Hyperlink.Follow

Use Hyperlinks(index), where index is the index number, to return a single Hyperlink object from a document, range, or selection. The following example activates the first hyperlink in the selection.

If Selection.HyperLinks.Count >= 1 Then
    Selection.HyperLinks(1).Follow
End If

Properties | Address Property | Application Property | Creator Property | EmailSubject Property | ExtraInfoRequired Property | Name Property | Parent Property | Range Property | ScreenTip Property | Shape Property | SubAddress Property | Target Property | TextToDisplay Property | Type Property

Methods | AddToFavorites Method | CreateNewDocument Method | Delete Method | Follow Method

Parent Objects | InlineShape Object | Shape Object | ShapeRange Object

Child Objects | Range Object | Shape Object