Discussion Locked

Finding hyperlinks in Word documents

0 helpful
14 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there a programmatic way to determine if an Office document (specifically Word) contains hyperlinks? It's not important what the links are to, just whether there ARE any links in a document (or group of documents).

14 replies

by dklippert

Sub CountHyper()

With ActiveDocument
Dim HyperMem As Hyperlink
Dim HyperCount As Integer
For Each HyperMem In ActiveDocument.Hyperlinks
HyperCount = HyperCount + 1
Next HyperMem
End With
MsgBox HyperCount & " Hyperlinks"

End Sub

by rwyatt365

I need something that can identify hyperlinks that is "external" to Word. I don't want to have to open the document to find the links.

by rwyatt365

I need something that can identify hyperlinks that is "external" to Word. I don't want to have to open the document to find the links.

by godshots

Turn on your view field codes option:
Go to TOOLS, OPTIONS, select the VIEW tab and then select view codes. I also have my codes shaded so they are easier to view.

by rwyatt365

I need something that can identify hyperlinks that is "external" to Word. I don't want to have to open the document to find the links.

by aisling

Using the Edit; Find dialog, click on More, then format, style, Hyperlink, OK, and click find next.

by rwyatt365

I need something that can identify hyperlinks that is "external" to Word. I don't want to have to open the document to find the links.

by rwyatt365

Thanks for the responses, but I'm looking for something "external" to the document (i.e. an application that would examine documents in a directory and tell me which one's contain hyperlinks). I don't want to have to open the document to determine whether it contains links.

by rwyatt365

I need something that can identify hyperlinks that is "external" to Word. I don't want to have to open the document to find the links.

by rwyatt365

This looks for linked web pages. I'm looking for linked Office documents (Word & Excel documents mostly). Thanks anyway.

This discussion is closed to new replies.