In excel, I can assign a macro to an image, with this dialog:

This results in the code:
Private Sub MyShape_Click()
' ...
End Sub
However, I will need to assign this macro to many different images. How can I determine which image was selected from inside my click handler, and how do I get a reference to it?
UPDATE:
Assign the same macro to all your pictures and use
Application.Callerin your macro to determine the picture/shape that called it. In this case (picture/shape)Application.Callerwill be of typeString.And you might also implement required behavior calling a sub, which implements needed processing logic, with a parameter from separate macros:
Where
Picture1_Click()andPicture2_Click()are macros that you assign to your images/shapes.