Reputation: 39
I want to copy a cell that has an online hyperlink to another cell (while keeping the hyperlink intact), but every time I try this it just copies the value without the hyperlink.
=hyperlink does not work because that just hyperlinks to my cell's location; not the online hyperlink.
I tried to copy using vba but I ran into the same problem.
Worksheets("X").Range("AD17") = Worksheets("Y").Range("A2")
Upvotes: 0
Views: 1103
Reputation: 29586
Using the Range.Copy
command will copy the text and the hyperlink:
Worksheets("Y").Range("A2").copy Worksheets("X").Range("AD17")
Upvotes: 1