How about
Function CheckLink(name1,href1)
if Browser(..).Page(..).Link("name:=" & name1,"href:=" & href1).Exist Then
Print "URL Exists"
End Function
Or, you could create a Description
object instance, and put the property values in there. This would eliminate the string concatenations:
Dim D: set D=Description.Create
D.Add "name", name1
D.Add "href", href1
Dim O: Set O=Browser(..).Page(..).Link(D)
Hths.