Hello Dave,
This macro will tell you if the link has been updated using the contents of cell "A1". You can change the site to want you want. It is in red font.
Sub CheckLink()
Dim IEapp As Object
Dim IEdoc As Object
Dim Href As String
Dim Res As Variant
Dim Site As String
Site = "www.google.com"
Href = Range("A1")
Set IEapp = CreateObject("InternetExplorer.Application")
IEapp.Navigate Site
While IEapp.Busy
DoEvents
Wend
Set IEdoc = IEapp.Document
For Each Item In IEdoc.Links()
Res = InStr(1, Item.outerhtml, Href)
If Res Then
MsgBox "Link has Not Changed"
GoTo Finish
End If
Next Item
MsgBox "Link has been Updated."
Finish:
Set IEapp = Nothing
Set IEdoc = Nothing
End Sub
Bookmarks