Hyperlink.Shape property (Publisher)

Returns a Shape object that represents the shape associated with a hyperlink.

Syntax

expression.Shape

expression A variable that represents a Hyperlink object.

Return value

Shape

Example

This example adds a hyperlink to the first shape on the first page of the active publication and then vertically flips the shape. This example assumes that there is at least one shape on the first page of the active publication.

Sub FormatHyperlinkShape() 
 With ActiveDocument.Pages(1).Shapes(1).Hyperlink 
 .Address = "https://www.tailspintoys.com/" 
 .Shape.Flip FlipCmd:=msoFlipVertical 
 End With 
End Sub

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.