My code that is giving me trouble is -
I'm getting Run-time error 5: Invalid procedure call or argument.
Essentially, what I'm trying to accomplish is to change all cells in column G to a hyperlink. If I could get the above to work, I was going to simply copy and paste the formula down, copy cells in AA and paste them back into G.
VBA Code:
Range("AA5").Hyperlinks.Add Anchor:=Range("AA5"), Address:="https://webaddress.com/?query=" & G5, TextToDisplay:=G5
I'm getting Run-time error 5: Invalid procedure call or argument.
Essentially, what I'm trying to accomplish is to change all cells in column G to a hyperlink. If I could get the above to work, I was going to simply copy and paste the formula down, copy cells in AA and paste them back into G.