Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default What Shape was Clicked ?

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?
--
Gary''s Student - gsnu2007xx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default What Shape was Clicked ?

sCaller = Application.Caller

' then maybe
Select Case sCaller

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

Regards,
Peter T

"Gary''s Student" wrote in message
...
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?
--
Gary''s Student - gsnu2007xx



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default What Shape was Clicked ?

Thanks !
--
Gary''s Student - gsnu200786


"Peter T" wrote:

sCaller = Application.Caller

' then maybe
Select Case sCaller

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

Regards,
Peter T

"Gary''s Student" wrote in message
...
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?
--
Gary''s Student - gsnu2007xx




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
enter time when shape is clicked Dgwood90 Excel Discussion (Misc queries) 1 October 15th 08 10:31 AM
Get name of clicked Shape Zurn[_60_] Excel Programming 3 July 24th 06 02:55 PM
Detect which shape was clicked.... Thief_ Excel Programming 2 July 15th 05 04:46 AM
Detect which shape was clicked? Thief_ Excel Programming 1 July 15th 05 03:53 AM
detecting shape clicked on notsureofthatinfo Excel Programming 1 October 15th 03 07:46 AM


All times are GMT +1. The time now is 06:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"