Double Click Event on Image

R

Redan

Hello,

Is it possible to get the .Tag when I double click on an Image without
having to specify the name of the Image control and instead using something
Parent or Me to ?

Thanks in advance!

Example :


Private Sub hello(strName As String)
MsgBox strName
End Sub

Private Sub Image1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
hello Image1.Tag
End Sub

Private Sub Image2_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
hello Image2.Tag
End Sub

Private Sub Image3_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
hello Image3.Tag
End Sub

Private Sub Image4_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
hello Image4.Tag
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