Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
No left click | Excel Discussion (Misc queries) | |||
Detect top, left & height of activeworkbook? How do? | Excel Programming | |||
How to detect which menu item user click on | Excel Programming | |||
ALT & left click | Excel Discussion (Misc queries) | |||
What event to detect click on UserForm ListBox? | Excel Programming |