Hyperlink Object
Publisher Developer Reference |
Represents a hyperlink. The Hyperlink object is a member of the Hyperlinks collection and the Shape and ShapeRange objects.
Example
Use the Hyperlink property to return a Hyperlink object associated with a shape (a shape can have only one hyperlink). The following example deletes the hyperlink associated with the first shape in the active document.
Visual Basic for Applications |
---|
|
Use Hyperlinks(index), where index is the index number, to return a single Hyperlink object from a document, range, or selection. The following example deletes the first hyperlink in the selection.
Visual Basic for Applications |
---|
|
Use the Add method to add a hyperlink. The following example adds a hyperlink to the selected text.
Visual Basic for Applications |
---|
|
Use the Address property to add or change the address to a hyperlink. The following example adds a shape to the active publication and then adds a hyperlink to the shape.
Visual Basic for Applications |
---|
|
See Also