hyperlink display text
The following UDF should give you the address:
Function hyp(r As Range) As String
hyp = ""
If r.Hyperlinks.Count 0 Then
hyp = r.Hyperlinks(1).Address
Exit Function
End If
If r.HasFormula Then
rf = r.Formula
dq = Chr(34)
If InStr(rf, dq) = 0 Then
Else
hyp = Split(r.Formula, dq)(1)
End If
End If
End Function
--
Gary''s Student
gsnu200707
"max" wrote:
how do i view the actual email address for the hyperlink text? the workbook
i'm viewing has 4 characters for the hyperlink not the email address.
|