How can I remove all hyperlinks at once to save as no-HPLnk file

G

Guest

I like to save a document as plain Word file that has no undetected
fyperlinked words. Rather than deleting hyperlink one by one, is there any
method to delte them all at once?
 
J

Jay Freedman

GeneCT said:
I like to save a document as plain Word file that has no undetected
fyperlinked words. Rather than deleting hyperlink one by one, is
there any method to delte them all at once?

Do you want to keep the text and just make it not-linked, or do you want to
remove the text, too?

To remove the hyperlink but leave the text, use this macro
(http://www.gmayor.com/installing_macro.htm):

Sub NoHLinks()
Dim idx As Long
For idx = 1 To ActiveDocument.Hyperlinks.Count
ActiveDocument.Hyperlinks(1).Delete
Next
End Sub


Here's how to remove the hyperlinks _and_ their text:

First press Alt+F9 to display all field codes instead of field results. In
the Edit > Replace dialog, put this in the Find What box:

^d HYPERLINK

(notice the space character after the d). Leave the Replace With box empty
and click Replace All.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top