Change a picture when clicked

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

I have two versions of a picture (.png files), one 'greyed out' and one in
full color. I want to display the greyed out version and then if somone
clicks on it I want it to change to the color version and vise versa.

I'd also like to assign a yes/no or 0/1 value to it so I can report on it.

Any suggestions? Thanks!
 
Sub MyImage_Click()

If MyImage.Picture = "C:\Path to grayed picture.png" Then
MyImage.Picture = "C:\Path to color picture.png"
Else
MyImage.Picture = "C:\Path to grayed picture.png"
End If
End Sub
 
Back
Top