Thread: [Solved] Help with Word macro please
View Single Post
 
Old 01-21-2011, 02:43 PM
Philcraig69 Philcraig69 is offline Windows 7 64bit Office 2003
Novice
 
Join Date: Jan 2011
Posts: 2
Philcraig69 is on a distinguished road
Default Help with Word macro please

Hi,

I use this simple macro:

Dim alink As Field
For Each alink In ActiveDocument.Fields
If alink.Type = wdFieldHyperlink Then
alink.Unlink
End If
Next alink

to remove all hyperlinks from a document. Now I need to remove only the hyperlinks with the word APPLE in the url, and leave the others alone -- how would I modify the macro??
Thanks for any help!
Reply With Quote