Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default How do you detect a Left click on a Worksheet

Is there a way to detect a Left Mouse Click on a Worksheet?
Something like the event procedures "Workbook_SheetBeforeDoubleClick" for a
double
left click or "Workbook_SheetBeforeRightClick" for a right click.
Or, some other way???

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default How do you detect a Left click on a Worksheet

Hi Mike,

Am Sun, 17 Jul 2011 09:27:37 -0700 schrieb Mike:

Is there a way to detect a Left Mouse Click on a Worksheet?
Something like the event procedures "Workbook_SheetBeforeDoubleClick" for a
double
left click or "Workbook_SheetBeforeRightClick" for a right click.


with left click you select a cell. Try:
Worksheet_SelectionChange


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default How do you detect a Left click on a Worksheet

"Worksheet_SelectionChange" also detects any selection changes you make in
the code. Thus, I can't differentiate between a physical mouse click and a
selection change due to a code selection change.

"Claus Busch" wrote in message
...
Hi Mike,

Am Sun, 17 Jul 2011 09:27:37 -0700 schrieb Mike:

Is there a way to detect a Left Mouse Click on a Worksheet?
Something like the event procedures "Workbook_SheetBeforeDoubleClick" for
a
double
left click or "Workbook_SheetBeforeRightClick" for a right click.


with left click you select a cell. Try:
Worksheet_SelectionChange


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default How do you detect a Left click on a Worksheet

Hi Mike,

Am Sun, 17 Jul 2011 09:58:04 -0700 schrieb Mike:

"Worksheet_SelectionChange" also detects any selection changes you make in
the code. Thus, I can't differentiate between a physical mouse click and a
selection change due to a code selection change.


you can stop any event by code selection change with:
Application.EnableEvents = False
At the end of code you have to turn to TRUE


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default How do you detect a Left click on a Worksheet

Thanks Claus !

"Claus Busch" wrote in message
...
Hi Mike,

Am Sun, 17 Jul 2011 09:58:04 -0700 schrieb Mike:

"Worksheet_SelectionChange" also detects any selection changes you make
in
the code. Thus, I can't differentiate between a physical mouse click and
a
selection change due to a code selection change.


you can stop any event by code selection change with:
Application.EnableEvents = False
At the end of code you have to turn to TRUE


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2



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
No left click NasaDBGuy Excel Discussion (Misc queries) 0 April 13th 10 07:49 PM
Detect top, left & height of activeworkbook? How do? Chet Excel Programming 1 November 20th 09 10:56 AM
How to detect which menu item user click on Tran Hong Quang Excel Programming 0 November 5th 09 02:40 AM
ALT & left click sby Excel Discussion (Misc queries) 0 May 29th 07 11:17 AM
What event to detect click on UserForm ListBox? Don Wiss Excel Programming 1 August 26th 05 10:35 PM


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