Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Function to retrieve embedded URL link?

This little function will extract all URLs - no just those made by formula:

http://www.EXCELGAARD.dk/Lib/GETURL/

....and the function has a few 'extra options' as well :-)



CE




Barb Reinhardt wrote:
I found this post of Bernard's that answers your question

15-Jan-08 10:57:19

In A1 I entered this formula: =HYPERLINK("www.abc.ca","click for abc")
In B1 I use =GETLINK(A1) and this returned: www.abc.ca
The UDF is
Function getlink(mycell)
myform = mycell.Formula
If Mid(myform, 2, 9) = "HYPERLINK" Then
commapos = InStr(1, myform, ",")
getlink = Mid(myform, 13, commapos - 14)
Else
getlink = ""
End If
End Function

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email


Hi,

I have an Excel worksheet (actually it's a colleague's file) with
columns containing URL's. The anchor text is different than the URL.

For example:

Report A <http://long_convoluted_url_to_sharepoint_site. The text
is "Report A", blue, underlined, a link, the usual stuff.
Cntl-click launches the browser to the appropriate Sharepoint URL.

The number of columns containing URL's vary from 1 - 5 columns (A -
E). Most times it's just column A, with missing data in the other
columns.

Does anyone know of an Excel formula or VB code that could copy the
URL link into another column(s)?

Thanks,
Scott



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
link to embedded object dfcMIG Excel Discussion (Misc queries) 0 January 19th 10 10:04 PM
How to retrieve data from web link? Eric Excel Worksheet Functions 2 March 3rd 08 08:16 AM
How do I link to an embedded object iamclayed Excel Discussion (Misc queries) 1 January 2nd 08 07:52 AM
Link To Embedded Object Brainfire Excel Discussion (Misc queries) 0 June 21st 06 02:40 PM
OLE Embedded File Link SkipC Excel Programming 0 November 22nd 03 10:41 AM


All times are GMT +1. The time now is 11:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"