#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default events

Hi,
Are there any way to trap the selection of a shape on
a workshhet through an event?

jacob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default events

Jacob,

AFAIK, there is no event triggered by selecting a shape, but you could
easily add a macro to the shape to perform any action you desire.

HTH,
Bernie
MS Excel MVP

"jacob" wrote in message
...
Hi,
Are there any way to trap the selection of a shape on
a workshhet through an event?

jacob



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default events

And just to add to Bernie's suggestion. It can be the same macro for all the
shapes.

Option Explicit
Sub testme()
Dim myShape As Shape

Set myShape = ActiveSheet.Shapes(Application.Caller)

MsgBox Application.Caller & _
vbLf & myShape.Name & _
vbLf & myShape.TopLeftCell.Address
End Sub



Bernie Deitrick wrote:

Jacob,

AFAIK, there is no event triggered by selecting a shape, but you could
easily add a macro to the shape to perform any action you desire.

HTH,
Bernie
MS Excel MVP

"jacob" wrote in message
...
Hi,
Are there any way to trap the selection of a shape on
a workshhet through an event?

jacob


--

Dave Peterson

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
Enabling Events Robin Clay Excel Discussion (Misc queries) 8 July 12th 06 03:07 PM
events? [email protected] Excel Discussion (Misc queries) 1 September 14th 05 03:26 PM
Need some events... Tim Mattingly Excel Programming 0 August 16th 04 09:53 AM
events Mark[_17_] Excel Programming 1 October 31st 03 09:18 AM
events Mark[_17_] Excel Programming 1 October 29th 03 12:56 PM


All times are GMT +1. The time now is 03:33 AM.

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

About Us

"It's about Microsoft Excel"