![]() |
|
#2
|
||||
|
||||
|
You can check the documents using a function similar to
Code:
Function IsThisLinkUsedIn(strLink As String, oDoc As Document) As Boolean
Dim oLink As Hyperlink
For Each oLink In oDoc.Hyperlinks
If oLink.Address = strLink Then
IsThisLinkUsedIn = True
Exit For
End If
Next oLink
Set oLink = Nothing
End Function
Code:
Sub Macro1()
MsgBox IsThisLinkUsedIn("https://www.gmayor.com/Word_pages.htm", ActiveDocument)
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
| Tags |
| function, links |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Saving new word documents to specific files
|
maxbeedie | Word | 1 | 11-15-2016 04:04 AM |
Batch create word files with link to changing excel
|
hannes.ledegen | Mail Merge | 8 | 04-07-2016 01:22 AM |
Searching Multiple PowerPoint & Word Files
|
BobbyAre | PowerPoint | 14 | 08-12-2012 06:52 AM |
searching for text in multiple excel files
|
roytom | Excel | 2 | 07-30-2012 01:57 PM |
| searching for Link in my Outlook Msg. body... | JeffBPaarsa | Outlook | 0 | 03-30-2012 05:02 PM |