Shape Property

Applies To

Hyperlink object.

Description

Returns a Shape object for the specified hyperlink. If the hyperlink isn't represented by a shape, an error occurs. Read-only.

See Also

Hyperlink object, InlineShapes property, ShapeRange property, Shapes property.

Example

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)