Hyperlink Collection

B

Bob

I want to access and verify all the hyperlinks in a word document

Does Word have a collection of all the hyperlinks in a documnet?

How can I use do this in VB rather than VBA?
 
J

Jezebel

Indeed. Astonishingly, it's called the Hyperlinks collection. In VB, as in
VBA, create a reference to the document. The Hyperlinks collection is one of
its properties:

Dim pHyperlink as Word.Hyperlink

For each pHyperlink in WordDoc.Hyperlinks
....
 

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