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 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