ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hyperlink help (https://www.excelbanter.com/excel-programming/362444-hyperlink-help.html)

Shani

Hyperlink help
 
In column A there a bunch of cells
I want to extract all the hyperlinks associated with the cells in
column A into Column B

for example
A1=axyfsk hyperlink=http://www.fasdfasdfasfsdfafd.com
I want B1=hyperlink=http://www.fasdfasdfasfsdfafd.com


Ron de Bruin

Hyperlink help
 
Hi Shani

Use this

Dim hlink As Hyperlink
For Each hlink In Columns("A").Hyperlinks
hlink.Parent.Offset(0, 1).Value = hlink.Address
Next


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Shani" wrote in message oups.com...
In column A there a bunch of cells
I want to extract all the hyperlinks associated with the cells in
column A into Column B

for example
A1=axyfsk hyperlink=http://www.fasdfasdfasfsdfafd.com
I want B1=hyperlink=http://www.fasdfasdfasfsdfafd.com




David McRitchie

Hyperlink help
 
Hi Shani,
see http://www.mvps.org/dmcritchie/excel...perlinkaddress

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Shani" wrote in message oups.com...
In column A there a bunch of cells
I want to extract all the hyperlinks associated with the cells in
column A into Column B

for example
A1=axyfsk hyperlink=http://www.fasdfasdfasfsdfafd.com
I want B1=hyperlink=http://www.fasdfasdfasfsdfafd.com




Tom Ogilvy

Hyperlink help
 
for each hlnk in Activesheet.hyperlinks
hlnk.parent.offset(0,1).Value = "'" & hlnk.Address
Next

--
Regards,
Tom Ogilvy


"Shani" wrote:

In column A there a bunch of cells
I want to extract all the hyperlinks associated with the cells in
column A into Column B

for example
A1=axyfsk hyperlink=http://www.fasdfasdfasfsdfafd.com
I want B1=hyperlink=http://www.fasdfasdfasfsdfafd.com



Tom Ogilvy

Hyperlink help
 
sub Extracthypelinksaddress()
Dim hlnk as Hyperlink
for each hlnk in activesheet.hyperlinks
hlnk.parent.offset(0,1).Value = "'" & hlnk.Address
Next
End Sub

the most I could add is to come to your site and run the macro.

--
Regards,
Tom Ogilvy

"Shani" wrote:

In column A there a bunch of cells
I want to extract all the hyperlinks associated with the cells in
column A into Column B

for example
A1=axyfsk hyperlink=http://www.fasdfasdfasfsdfafd.com
I want B1=hyperlink=http://www.fasdfasdfasfsdfafd.com




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com