Hyperlink.Shape property (Word)
Returns a Shape object for the specified hyperlink or diagram node.
expression Required. A variable that represents a 'Hyperlink' object.
If a hyperlink isn't represented by a shape, an error occurs.
This example changes the fill color for the shape that represents the first hyperlink in the active document. For this example to work, the hyperlink must be represented by a shape.
ActiveDocument.Hyperlinks(1).Shape.Fill.ForeColor.RGB = _ RGB(255, 255, 0)
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.