ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need to extract hyperlink (https://www.excelbanter.com/excel-programming/362346-need-extract-hyperlink.html)

Shani

Need to extract hyperlink
 
I have a column with links but would like to create a new column with
the urls they are point ting to

for example
A1=google but the hyperlink is www.google.com
I would like B1=www.google.com

A2=yahoo but the hyperlink is www.yahoo.com
I would like B2=www.yahoo.com


Tom Ogilvy

Need to extract hyperlink
 
for each hlnk in activesheet.hyperlinks
hlnk.parent.offset(0,1).Value = "'" & hlnk.Address
Next

--
regards,
Tom Ogilvy


"Shani" wrote:

I have a column with links but would like to create a new column with
the urls they are point ting to

for example
A1=google but the hyperlink is www.google.com
I would like B1=www.google.com

A2=yahoo but the hyperlink is www.yahoo.com
I would like B2=www.yahoo.com



Shani

Need to extract hyperlink
 
Can you provide a little mroe information please


Tom Ogilvy

Need to extract hyperlink
 
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:

Can you provide a little mroe information please




All times are GMT +1. The time now is 01:49 AM.

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