function dohref(theline)
dim thelink
a = Cint(InStr(1,Ucase(theline),"<A HREF",vbtextcompare)) ' start of string
b = Cint(InStr(1,Ucase(d),">",vbtextcompare)) ' end of string
c = b-a ' length of string
thelink = mid(theline, a, c)
thelink = replace(thelink,">"," target='_blank'>")
theleft = left(theline, a-1)
theright = right(theline, b+1)
theline = theleft&thelink&theright
end function |