ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   How to copy the url for a list of cell with hyperlinks in another column? (https://www.excelbanter.com/new-users-excel/49417-how-copy-url-list-cell-hyperlinks-another-column.html)

jaya

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



Ron de Bruin

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


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


"jaya" wrote in message ...
How to copy the url for a list of cell with hyperlinks in another column?





All times are GMT +1. The time now is 12:41 AM.

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