Bulk removal of Hyperlinks

A

Andrea

I'm using Word 2003.

Wondering if anyone knows of a way to do a bulk remove all hyperlinks from a
document, but leave the text? Am aware of the right click, remove hyperlink
option, but it's a very long document so was hoping to find a way to strip
out the fields all out at once.

Thanks.
 
S

Suzanne S. Barnhill

If the document contains no other fields, you can use Ctrl+A, Ctrl+Shift+F9.

If the document contains other fields, display field codes and use Find to
search for ^19 HYPERLINK. When you come to the first one, close the Find
dialog and, with the hyperlink selected, press Ctrl+Shift+F9. Then click on
the Find Next button (at the bottom of the vertical scroll bar) and press
F4. Repeat Find Next, F4, until you have unlinked them all.

Note that this will not affect the display text if it is different from the
underlying hyperlink.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
G

Graham Mayor

Use a macro

Sub UnlinkHyperlinks()
Dim oField As Field
For Each oField In ActiveDocument.Fields
If oField.Type = wdFieldHyperlink Then
oField.Unlink
End If
Next
Set oField = Nothing
End Sub

http://www.gmayor.com/installing_macro.htm
This will unlink the hyperlinks, leaving the prompt text.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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