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
....
 
Top