What Shape was Clicked ?

G

Gary''s Student

I have a set of about a dozen pictures on a worksheet, all linked to the same
macro. When the Shape is clicked, the common macro executes. How can I
determine which Shape the user clicked?
 
P

Peter T

sCaller = Application.Caller

' then maybe
Select Case sCaller

' or maybe
Set shp = ActiveSheet.Shapes(sCaller)

Regards,
Peter T
 
G

Gary''s Student

Thanks !
--
Gary''s Student - gsnu200786


Peter T said:
sCaller = Application.Caller

' then maybe
Select Case sCaller

' or maybe
Set shp = ActiveSheet.Shapes(sCaller)

Regards,
Peter T
 

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