Remove all hyperlinks (keeping the text) from a document

B

blueboy

I have taken a document form the internet that includes words that are
hyperlinked. I do not want those hyperlinks, only the text. I would like to
be able to remove all hyperlinks from the document. Please oh, please can
you let me do that?

Also, is there a way to determine whether Word opens web pages in opened
browser windows, versus new browser windows?
 
S

Suzanne S. Barnhill

If you don't have any other fields in the document, Ctrl+A, Ctrl+Shift+F9
will unlink all the hyperlinks, leaving the display text. If you have other
fields you don't want to unlink, then display field codes (Alt+F9), then use
Find to search for ^19 HYPERLINK. Starting at the top of the document, find
the first hyperlink and press Ctrl+Shift+F9. Close the Find dialog. Click
the Find Next button at the bottom of the vertical scroll bar. Press F4
(Repeat). Continue clicking Find Next and pressing F4 until you have
unlinked all the hyperlinks. Press Alt+F9 again to toggle the field display
back.
 
J

Jay Freedman

If there are other fields and you need to be selective about changing
only the hyperlinks, use this small macro:

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

If you need instructions to use the macro, see
http://www.gmayor.com/installing_macro.htm.
 

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