ShapeRange.Hyperlink property (Publisher)

Returns a Hyperlink object representing the hyperlink associated with the specified shape.

Syntax

expression.Hyperlink

expression A variable that represents a ShapeRange object.

Example

This example sets shape one on page one in the active publication to jump to the specified website when the shape is chosen.

Dim hypTemp As Hyperlink 
 
Set hypTemp = ActiveDocument.Pages(1).Shapes(1).Hyperlink 
 
hypTemp.Address = "https://www.tailspintoys.com/"

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.