> Change to:
>
[quoted text clipped - 6 lines]
> Next i
> End Sub
or even to this, which would be quicker if there are a large number of
hyperlinks to delete
Sub deleteAllHyperlinks()
Dim HyperlinksCount As Long
Dim i As Long
HyperlinksCount = Selection.Range.Hyperlinks.Count
With Selection.Range
For i = 1 to HyperlinksCount
.Hyperlinks(1).Delete
Next i
End With
End Sub

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
Greg - 07 Apr 2006 16:17 GMT
Jonathan,
This is true and and a lesson relearned. Someday perhaps I will
remember it.
Thanks.
Klaus Linke - 07 Apr 2006 16:18 GMT
Or to just turn them into regular text: Ctrl+Shift+F9 (UnlinkFields).
:-) Klaus
>> Change to:
>>
[quoted text clipped - 20 lines]
> End With
> End Sub
Jonathan West - 07 Apr 2006 16:57 GMT
> Or to just turn them into regular text: Ctrl+Shift+F9 (UnlinkFields).
>
> :-) Klaus
That's OK if there are no other fields present in the selection.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org