Userform picture

  • Thread starter brownti via OfficeKB.com
  • Start date
B

brownti via OfficeKB.com

I need some help with userforms. I have two forms, the first one, Userform 1,
has a picture and a button on it. The second one, Userform 2, has 10
pictures on it with corresponding radio buttons. When you click the button
on Userform1 it displays Userform2 then when a radio button is selected, i
want the corresponding picture to show up in the Userform1 picture box. How
can i do this without writing code with the location of each picture? Is
that possible?
 
A

Andy Pope

Hi,

Something like this in the OptionButton click event

Private Sub OptionButton1_Click()

Userform1.Image1.picture = Userform2.Image1.picture

End Sub

Change userform2 image control reference to suit option button being
clicked.

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

Top