Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
bobbabuoy
 
Posts: n/a
Default Pulling Embedded LInk Out of Cell


I have a list of sites (ex-"Running Site") in an excel column that are
formatted as links (ie: a browser with a link opens when you click on
the cell). I want to write a macro that will pull the links out of the
cell and write them to a text file or an adjacent column. How can I do
that? I basically just need the line of code that will identify the
link that is embedded in the cell.

Thanks~


--
bobbabuoy
------------------------------------------------------------------------
bobbabuoy's Profile: http://www.excelforum.com/member.php...o&userid=33491
View this thread: http://www.excelforum.com/showthread...hreadid=532907

  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Pulling Embedded LInk Out of Cell

If A1 contains a hyperlink then

=hyp2(A1) will display the link

Enter this tiny UDF:

Function hyp2(r As Range) As String
hyp2 = r.Hyperlinks(1).Address
End Function

--
Gary's Student


"bobbabuoy" wrote:


I have a list of sites (ex-"Running Site") in an excel column that are
formatted as links (ie: a browser with a link opens when you click on
the cell). I want to write a macro that will pull the links out of the
cell and write them to a text file or an adjacent column. How can I do
that? I basically just need the line of code that will identify the
link that is embedded in the cell.

Thanks~


--
bobbabuoy
------------------------------------------------------------------------
bobbabuoy's Profile: http://www.excelforum.com/member.php...o&userid=33491
View this thread: http://www.excelforum.com/showthread...hreadid=532907


  #3   Report Post  
Posted to microsoft.public.excel.misc
Duke Carey
 
Posts: n/a
Default Pulling Embedded LInk Out of Cell

activecell.Hyperlinks(1).Address


"bobbabuoy" wrote:


I have a list of sites (ex-"Running Site") in an excel column that are
formatted as links (ie: a browser with a link opens when you click on
the cell). I want to write a macro that will pull the links out of the
cell and write them to a text file or an adjacent column. How can I do
that? I basically just need the line of code that will identify the
link that is embedded in the cell.

Thanks~


--
bobbabuoy
------------------------------------------------------------------------
bobbabuoy's Profile: http://www.excelforum.com/member.php...o&userid=33491
View this thread: http://www.excelforum.com/showthread...hreadid=532907


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 page header with cell contents Matthew Excel Worksheet Functions 8 May 1st 07 06:22 PM
hyperlink - link one cell to another in a worksheet. how? Drewz Excel Worksheet Functions 1 October 20th 05 04:09 PM
How to link cell for value in another cell of pivot table? JamesChoi Excel Discussion (Misc queries) 1 September 15th 05 03:24 AM
How do I use a cell value as the filename in an external link? wattkisson Excel Discussion (Misc queries) 5 July 11th 05 09:07 PM
How do I use a cell value as the filename in an external link? wattkisson Excel Worksheet Functions 1 July 8th 05 11:51 PM


All times are GMT +1. The time now is 01:55 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"