Selection.Hyperlinks property (Word)

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



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

See also

Selection Object

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.