kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
I have an activeX image control on a Worksheet.
It works fine when do things like :
OR
But when I do:
It says the control can't be found.
Can someone tell me why the last code is not working?
Thanks in advance.
Kelly
It works fine when do things like :
Code:
Sheet1.Image1.Picture = LoadPicture("")
OR
Code:
With Sheet1
.Image1.Picture = LoadPicture("")
End With
But when I do:
Code:
Dim Sh As Worksheet
Set Sh = Sheet1
Sh.Image1.Picture = LoadPicture("")
It says the control can't be found.
Can someone tell me why the last code is not working?
Thanks in advance.
Kelly