Range.Hyperlinks (Word)

Returns a Hyperlinks collection that represents all the hyperlinks in the specified range.

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


Dim objLink As Hyperlink 
Dim objRange As Range 
 
Set objRange = ActiveDocument.Range( _ 
 Paragraphs(1).Range.Start, _ 
 Paragraphs(10).Range.End) 
 
For Each objLink In objRange.Hyperlinks 
 If InStr(LCase(objLink.Address), "microsoft") <> 0 Then 
 MsgBox objLink.Name 
 End If 
Next objLink