Function IsLinkSource(LinkPath As String) As Boolean
Dim i As Integer
On Error Resume Next
i = WorksheetFunction.Match(LinkPath, ThisWorkbook.LinkSources, False)
If Err = 0 Then
IsLinkSource = True
Else
Err.Clear
IsLinkSource = False
End If
End Function