REOVE ALL HYPERLINKS

  • Thread starter Faraz Ahmed Qureshi
  • Start date
F

Faraz Ahmed Qureshi

Right click provides for removal of a hyperlink but only when each and every
link is operated upon separately. How to remove all the links from a document
in a single click?
 
G

Graham Mayor

If you want to remove all trace of Hyperlinks including the tip text then
search for and replace the Hyperlink paragraph style with nothing. The
following macro will do that.

Dim oRng As Range
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = ""
.Style = "Hyperlink"
Do While .Execute = True
oRng.Delete
Loop
End With

http://www.gmayor.com/installing_macro.htm

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


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

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