If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
URL function
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 |
#2
|
|||
|
|||
URL function
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 |
Thread Tools | |
Display Modes | |
|
|