Remove all hyperlinks (keeping the text) from a document

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
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.
 
Back
Top