How I can copy hyperlink's address into clipboard?
Using the "record macro" option, I get this:
Sub CopyHyperlink()
Selection.Range.Hyperlinks(1).Range.Fields(1).Result.Select
Selection.Copy
End Sub
But, this doesn't give me the desired result. See the picture to compare actual and desired results:
As you see, my code is actually copying link's text, instead of it's address.
Probably, there should be something like
Selection.Range.Hyperlinks(1).Address
but it doesn't work at all.
How make it work properly?