Change a picture when clicked

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!
 
A

Arvin Meyer [MVP]

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
 

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