Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default trapping click events on shapes

I'm trying to trap mouse clicks on a shape that is on a
Worksheet. The SheetBeforeRightClick Event traps mouse
clicks over cells but not over the shape - any suggestions
for a solution?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default trapping click events on shapes

"Matt I" wrote in message
...
I'm trying to trap mouse clicks on a shape that is on a
Worksheet. The SheetBeforeRightClick Event traps mouse
clicks over cells but not over the shape - any suggestions
for a solution?


Hi Matt,

The only way to do this is to assign a macro to the OnAction property of
the shape. This will run the specified macro whenever the user clicks on the
shape. There's no way that I know of to trap a right-click over a shape.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default trapping click events on shapes

Hi Bob

This problem has also frustrated me, although I only
need "GotFocus".

Would it be possible to "Class" for any object including
shapes on the activesheet and get the GotFocus event. To
compound problems my code is not in the active workbook.

TIA
Sandy

-----Original Message-----
"Matt I" wrote in message
...
I'm trying to trap mouse clicks on a shape that is on a
Worksheet. The SheetBeforeRightClick Event traps mouse
clicks over cells but not over the shape - any

suggestions
for a solution?


Hi Matt,

The only way to do this is to assign a macro to the

OnAction property of
the shape. This will run the specified macro whenever the

user clicks on the
shape. There's no way that I know of to trap a right-

click over a shape.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default trapping click events on shapes

"Sandy V" wrote in message
...
Hi Bob

This problem has also frustrated me, although I only
need "GotFocus".

Would it be possible to "Class" for any object including
shapes on the activesheet and get the GotFocus event. To
compound problems my code is not in the active workbook.


Hi Sandy,

The GotFocus event only applies to ActiveX controls and is inherited by
those controls from the Worksheet container object. This means there is no
way to trap the GotFocus event outside the code module of the Worksheet
hosting the control. It can't be trapped at all for other kinds of shapes
because it doesn't apply to shapes that aren't ActiveX controls.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


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
excel document with shapes on it but the shapes do not print [email protected] Excel Worksheet Functions 2 October 22nd 09 06:17 PM
When drawing shapes in excel the shapes keep disappearing Tape Excel Discussion (Misc queries) 1 October 6th 06 04:23 PM
Chart Events - Trapping arrow key strokes RLang Charts and Charting in Excel 3 August 14th 06 12:41 AM
Click events on Ecel Cells aftamath Excel Discussion (Misc queries) 4 September 28th 05 04:35 PM
OnAction events intermittently failing on Shapes in Dialogsheets BizMark Excel Discussion (Misc queries) 0 August 12th 05 01:24 PM


All times are GMT +1. The time now is 06:00 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"