Macro_Nerd99
Board Regular
- Joined
- Nov 13, 2021
- Messages
- 61
- Office Version
- 365
I get a Runtime error '5': Invalid procedure call or argument when I run this code:
What is wrong with this code and how do I fix this error?
VBA Code:
Dim my_pic As Picture
Set my_pic = ActiveSheet.Pictures(1)
ActiveSheet.Hyperlinks.Add Anchor:=my_pic, Address:="https://google.com"
What is wrong with this code and how do I fix this error?