Hyperlink Property

Microsoft Word Visual Basic

Hyperlink Property

       

Returns a Hyperlink object that represents the hyperlink associated with the specified Shape, InlineShape, or ShapeRange object. Read-only.

Note   If there's no hyperlink associated with the specified shape, an error occurs.

Example

This example displays the address for the hyperlink for the first shape in the active document.

MsgBox ActiveDocument.Shapes(1).Hyperlink.Address