Hyperlinks Property
TOC
Collapse the table of content
Expand the table of content

Selection.Hyperlinks Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a Hyperlinks collection that represents all the hyperlinks in the specified selection. Read-only.

expression .Hyperlinks

expression A variable that represents a Selection object.

For information about returning a single member of a collection, see Returning an Object from a Collection.

This example jumps to the address of the first hyperlink in the selection.

If Selection.Hyperlinks.Count >= 1 Then 
 Selection.Hyperlinks(1).Follow 
End If
Show:
© 2016 Microsoft