Is there a way to remove all hyper links in a Word page at once?

D

Disarrayed

When I copy a web page into word all the hyper links are copied also. Is
there a way to remove all the hyperlinks on a document at once. I know that I
can right hand click a single hyper link and remove it but sometimes a page
may have several and it would be nice to be able to " Edit, Select all,
Remove hyper links."
 
H

Helmut Weber

Hi,

you'd need a little macro for this.

Like, untested:

Sub test4001()
Dim oHpl As Hyperlink
With ActiveDocument.Range.Hyperlinks
While .Count > 1
.Item(1).Range.Delete
Wend
End With
End Sub

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
H

Helmut Weber

Hi Anne,

quote: "cool beans"

But fun is kind of reduced with obvious and simple solutions.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
A

Anne Troy

:)
Someone asked me a question the other day on www.AllExperts.com, which I now
cannot find and don't recall specifically what the question was. Something
they wanted to do AFTER mail merge. They ended up using Find and Replace and
geeze was I embarrassed. I tried to make it much harder than necessary!

************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.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