Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Extracting Url from a hyperlink

I have a large list of hyperlinks I have imported to
Excel. I need to get the urls these links point to. Is
there a way to do this through code or an Excel function?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Extracting Url from a hyperlink

Hi
see your post in Excel.misc
P.S.: please dont multipost

--
Regards
Frank Kabel
Frankfurt, Germany

"Carlton Noles" schrieb im Newsbeitrag
...
I have a large list of hyperlinks I have imported to
Excel. I need to get the urls these links point to. Is
there a way to do this through code or an Excel function?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Extracting Url from a hyperlink

i = 1
for each hlnk in ActiveSheet.Hyperlinks
Cells(i,1).Value = hlnk.Address
Cells(i,2).Value = hlnk.SubAddress
i = i + 1
Next

--
Regards,
Tom Ogilvy


"Carlton Noles" wrote in message
...
I have a large list of hyperlinks I have imported to
Excel. I need to get the urls these links point to. Is
there a way to do this through code or an Excel function?



  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Extracting Url from a hyperlink

Thanks! Much Appreciated.
-----Original Message-----
i = 1
for each hlnk in ActiveSheet.Hyperlinks
Cells(i,1).Value = hlnk.Address
Cells(i,2).Value = hlnk.SubAddress
i = i + 1
Next

--
Regards,
Tom Ogilvy


"Carlton Noles" wrote in message
...
I have a large list of hyperlinks I have imported to
Excel. I need to get the urls these links point to. Is
there a way to do this through code or an Excel

function?


.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default Extracting Url from a hyperlink


ok, but how do you insert the url nexto the cell where the url was found ?

henry

"Tom Ogilvy" wrote:

i = 1
for each hlnk in ActiveSheet.Hyperlinks
Cells(i,1).Value = hlnk.Address
Cells(i,2).Value = hlnk.SubAddress
i = i + 1
Next

--
Regards,
Tom Ogilvy


"Carlton Noles" wrote in message
...
I have a large list of hyperlinks I have imported to
Excel. I need to get the urls these links point to. Is
there a way to do this through code or an Excel function?






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Extracting Url from a hyperlink

Dim hlnk as Hyperlink, rng as Range
for each hlnk in ActiveSheet.Hyperlinks
set rng = hlnk.parent.offset(0,-1)
rng.Value = hlnk.Address
if len(trim(hlnk.SubAddress)) < 0 then
rng.Value = Trim(rng.value & " " & hlnk.SubAddress)
End if
Next

--
Regards,
Tom Ogilvy

"Henry" wrote in message
...

ok, but how do you insert the url nexto the cell where the url was found ?

henry

"Tom Ogilvy" wrote:

i = 1
for each hlnk in ActiveSheet.Hyperlinks
Cells(i,1).Value = hlnk.Address
Cells(i,2).Value = hlnk.SubAddress
i = i + 1
Next

--
Regards,
Tom Ogilvy


"Carlton Noles" wrote in message
...
I have a large list of hyperlinks I have imported to
Excel. I need to get the urls these links point to. Is
there a way to do this through code or an Excel function?






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default Extracting Url from a hyperlink

does this look ok for you ? it works fine though.

Dim myLnk As Hyperlink
For Each myLnk In ActiveSheet.Hyperlinks
Cells(myLnk.Parent.Row, 6).Value = myLnk.Address
Next myLnk

maybe this mor compact code ?

henry

"Tom Ogilvy" wrote:

Dim hlnk as Hyperlink, rng as Range
for each hlnk in ActiveSheet.Hyperlinks
set rng = hlnk.parent.offset(0,-1)
rng.Value = hlnk.Address
if len(trim(hlnk.SubAddress)) < 0 then
rng.Value = Trim(rng.value & " " & hlnk.SubAddress)
End if
Next

--
Regards,
Tom Ogilvy

"Henry" wrote in message
...

ok, but how do you insert the url nexto the cell where the url was found ?

henry

"Tom Ogilvy" wrote:

i = 1
for each hlnk in ActiveSheet.Hyperlinks
Cells(i,1).Value = hlnk.Address
Cells(i,2).Value = hlnk.SubAddress
i = i + 1
Next

--
Regards,
Tom Ogilvy


"Carlton Noles" wrote in message
...
I have a large list of hyperlinks I have imported to
Excel. I need to get the urls these links point to. Is
there a way to do this through code or an Excel function?






  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Extracting Url from a hyperlink

ok, but how do you insert the url nexto the cell where the url was found ?

If the hyperlink is next to column 6, then that was information you didn't
provide. If the address property is all that you want, I can't guess that
either.

Unfortunately, I can't read your mind.

--
Regards,
Tom Ogilvy


"Henry" wrote in message
...
does this look ok for you ? it works fine though.

Dim myLnk As Hyperlink
For Each myLnk In ActiveSheet.Hyperlinks
Cells(myLnk.Parent.Row, 6).Value = myLnk.Address
Next myLnk

maybe this mor compact code ?

henry

"Tom Ogilvy" wrote:

Dim hlnk as Hyperlink, rng as Range
for each hlnk in ActiveSheet.Hyperlinks
set rng = hlnk.parent.offset(0,-1)
rng.Value = hlnk.Address
if len(trim(hlnk.SubAddress)) < 0 then
rng.Value = Trim(rng.value & " " & hlnk.SubAddress)
End if
Next

--
Regards,
Tom Ogilvy

"Henry" wrote in message
...

ok, but how do you insert the url nexto the cell where the url was

found ?

henry

"Tom Ogilvy" wrote:

i = 1
for each hlnk in ActiveSheet.Hyperlinks
Cells(i,1).Value = hlnk.Address
Cells(i,2).Value = hlnk.SubAddress
i = i + 1
Next

--
Regards,
Tom Ogilvy


"Carlton Noles" wrote in message
...
I have a large list of hyperlinks I have imported to
Excel. I need to get the urls these links point to. Is
there a way to do this through code or an Excel function?








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
Extracting URL from Hyperlink Lisa Excel Discussion (Misc queries) 4 July 24th 08 09:14 PM
Can't make hyperlink function work for hyperlink to website Frank B Denman Excel Worksheet Functions 15 February 5th 07 11:01 PM
Extracting hyperlink from a cell giraph Excel Worksheet Functions 1 February 11th 06 06:11 PM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05: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 09:26 AM.

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"