Changing the image in an imagebox using VBA?

K

Kenji

I have a Image box from VB Control Bar. I want to be able to change the
image in that imagebox using VBA. Is there a way I can do this? Thanks!

Kenjiro Yagi
 
A

Andy Pope

Hi Kenjiro ,

Use the LoadPicture method.

Image1.Picture = LoadPicture("mypic.bmp")

Cheers
Andy
 
Top