Help! VBA to Remove Hyperlinks

M

Mary Kelley

I have several hyperlinks that I need to remove in many
documents. Does anyone know what VBA code would be needed
to remove them all in one fell swoop rather than one-at-at-
time?

Thanks so much in advance...

Mary Kelley
 
D

Dave Lett

Hi Mary,

You can use something like the following (open all your documents):

Dim oDoc As Document
Dim iLink As Integer
For Each oDoc In Documents
For iLink = oDoc.Hyperlinks.Count To 1 Step -1
oDoc.Hyperlinks(iLink).Delete
Next iLink
Next oDoc


HTH
 

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