Jump to content

Recommended Posts

Posted

I created a document a long while back in word with numerous hyperlinks in it. But since then one of the hyperlinks has changed and I have to go through the whole document and find all the hyperlinks with this address and change them all. Is there was way to do a Find and Replace for the hperlink itsself without doing them one at a time? I know you can do it with text in the document but can you do the same thing with the hyperlink?

  • 2 weeks later...

Posted (edited)
I created a document a long while back in word with numerous hyperlinks in it. But since then one of the hyperlinks has changed and I have to go through the whole document and find all the hyperlinks with this address and change them all. Is there was way to do a Find and Replace for the hperlink itsself without doing them one at a time? I know you can do it with text in the document but can you do the same thing with the hyperlink?

Yup it shouldn't be too hard to code it in VBA .

For Each hLink In Documents(1).Hyperlinks   ' where documents(1) is your docuement
If InStr(hLink.Address, "YOURHYPERLINK") <> 0 Then
hLink.address = "NEW HYPERLNIK"
End If
Next hLink

Hope this helps :)

Regards

cyph

Edited by cypher_soundz

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...