Hello,
I'm using the code below to decode a list of hyperlinks in column A however, id doesn't grab the full URL.
All of these links go to different bookmarks within the same website page.
Example:
The full URL is: https://www.ecfr.gov/cgi-bin/text-i...c=true&node=pt42.4.435&rgn=div5#se42.4.435_12
My code only gives me: https://www.ecfr.gov/cgi-bin/text-i...b91d50d51553&mc=true&node=pt42.4.435&rgn=div5
I right click on the link in column A and it has the full URL.
Can anyone help me please?
Thank you in advance!
Andy
I'm using the code below to decode a list of hyperlinks in column A however, id doesn't grab the full URL.
All of these links go to different bookmarks within the same website page.
Example:
The full URL is: https://www.ecfr.gov/cgi-bin/text-i...c=true&node=pt42.4.435&rgn=div5#se42.4.435_12
My code only gives me: https://www.ecfr.gov/cgi-bin/text-i...b91d50d51553&mc=true&node=pt42.4.435&rgn=div5
I right click on the link in column A and it has the full URL.
Code:
Sub DecodeEachHyperlink()
Dim hl As Hyperlink
Dim ThisURL As String
For Each hl In ActiveSheet.Hyperlinks
ThisURL = hl.Address
hl.Parent.Offset(0, 1).Value = ThisURL
Next hl
End Sub
Can anyone help me please?
Thank you in advance!
Andy