How to copy the url for a list of cell with hyperlinks in another column?

  • Thread starter Thread starter jaya
  • Start date Start date
J

jaya

How to copy the url for a list of cell with hyperlinks in another column?
 
With the hyperlinks in Col A run this to copy the address in Col B

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top