Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RE: URL function

0 views
Skip to first unread message

Gary''s Student

unread,
Jun 21, 2009, 1:46:01 PM6/21/09
to
Try this User Defined Function:

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

Should work for both Inserted hyperlinks and hyperlinks entered with the
=HYPERLINK() function.
--
Gary''s Student - gsnu200858


"JoJo" wrote:

> Folks:
>
>
> In column #1 of my spreadsheet, I have a list of hyperlinks. When I hold my
> mouse over these links, the URL (or email address) associated with these
> links would show up.
>
> * Is there an Excel function (or keyboard combination) that I can use to
> copy the URL (or email address) associated with my links to column #2 ?
>
>
> Thanks,
> JoJo
>
>
>
>

JoJo

unread,
Jun 21, 2009, 1:39:31 PM6/21/09
to

Unknown

unread,
Jun 22, 2009, 1:44:15 AM6/22/09
to
0 new messages