How do I delete all hyperlinks in a Word document

A

Allen

I am working with Word 2000 documents that may be hundreds
of pages long and contain 10 or more hyperlinked words per
page. This means there are thousands of hyperlinks per
document. I want to delete all the hyperlinks but retain
the original words. I know I can right click an
individual hyperlinked word and select 'Hyperlink' then
select 'Remove hyperlink'. But doing this thousands and
thousands of times would be a real drag.

Does anyone know how I can somehow globally remove all the
hyperlinks in a document all at once? MS Word help files
do not seem address this.

Thanks for any help.
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Allen,

Run a macro containing the following code over the document

Dim alink As Field
For Each alink In ActiveDocument.Fields
If alink.Type = wdFieldHyperlink Then
alink.Unlink
End If
Next alink


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
G

Guest

hi doug
i am trying to do wat you told allen but i really dont understand, so please could you write again so its easier to understand

thanx emil

Hi Allen

Run a macro containing the following code over the documen

Dim alink As Fiel
For Each alink In ActiveDocument.Field
If alink.Type = wdFieldHyperlink The
alink.Unlin
End I
Next alin
 

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