Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Split HyperLink

I got the Excel table imported from some Internet Web page, the second
column represents the URL values. There is a need to get the real URL from
the cells of this column and copy it as a visible string to another
cell/column. How can we get the URL from the cell, split it and copy as a
string to another cell, is there a simple way of doing that? If I edit the
cell it shows the HyperLink.

I tried to record a macro editing the cell, selecting the URL and then
copying it as a string to the target cell, but the macro was not recorded
correctly.

Thanks,
Just D.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Split HyperLink

Hi

You could use this UDF.
Alt+F11 to open VB editor
Right click 'This Workbook'
Insert Module
Paste this in on the right

Function GetLink(HyperlinkCell As Range)
GetLink = Replace(HyperlinkCell.Hyperlinks(1).Address, "mailto:", "")
End Function

Enter the formula
=GetLink(A1) in a cell to return the underlying address of a hyperlink in
that cell

Mike


"Just D" wrote:

I got the Excel table imported from some Internet Web page, the second
column represents the URL values. There is a need to get the real URL from
the cells of this column and copy it as a visible string to another
cell/column. How can we get the URL from the cell, split it and copy as a
string to another cell, is there a simple way of doing that? If I edit the
cell it shows the HyperLink.

I tried to record a macro editing the cell, selecting the URL and then
copying it as a string to the target cell, but the macro was not recorded
correctly.

Thanks,
Just D.



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
How do I remove split a split window? Norm New Users to Excel 3 July 19th 08 10:31 PM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM
How can I split a hyperlink? RS&J Excel Discussion (Misc queries) 1 April 11th 05 08:18 PM
Macro to Copy Hyperlink to another file as a HYPERLINK, not text... dollardoc Excel Programming 1 April 7th 05 12:47 AM
reading html when hyperlink address not hyperlink text diplayed Kevin Excel Programming 1 December 4th 03 10:13 PM


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

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

About Us

"It's about Microsoft Excel"