Is there a wasy, using VBA, to scan down the column and high-light any cells
containing a "stale" link ?
Thanks in advance for any help.
--
jake
Private Sub CommandButton1_Click()
CheckHyperlinks Cells
End Sub
Public Function CheckHyperlinks(argRange As Range) As Long
Dim HLink As Hyperlink
For Each HLink In argRange.Hyperlinks
If IsFileValid(HLink.Address) = False Then HLink.Range.Interior.Color =
vbRed
Next
End Function
Public Function IsFileValid(FilePathName As String) As Boolean
On Error GoTo Handler
GetAttr (FilePathName)
IsFileValid = True
Exit Function
Handler:
IsFileValid = False
End Function
Not how mapped drives behave here and remote files (e.g. on e the web) would
need another approach.
NickHK
"Jakobshavn Isbrae" <Jakobsha...@discussions.microsoft.com> wrote in
message news:8369BBE5-CD62-48D1...@microsoft.com...
Thanks again
--
jake