Changing the image in an imagebox using VBA?

  • Thread starter Thread starter Kenji
  • Start date Start date
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
 
Hi Kenjiro ,

Use the LoadPicture method.

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

Cheers
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top