A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

URL function



 
 
Thread Tools Display Modes
  #1  
Old June 21st, 2009, 06:39 PM posted to microsoft.public.excel,microsoft.public.excel.links,microsoft.public.excel.misc,microsoft.public.excel.programming
JoJo
external usenet poster
 
Posts: 6
Default 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  
Old June 21st, 2009, 06:46 PM posted to microsoft.public.excel.links,microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel
Gary''s Student
external usenet poster
 
Posts: 7,584
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.