Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default using mouse click events in macros

I am trying to use the mouse to select a cell, and based on that cell
selection, I want a macro to execute.....but I do not see any excel functions
or VBA functions that will activate upon any mouse click/selection.

Any help would be appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default using mouse click events in macros

see Event Macros, Worksheet Events and Workbook Events
http://www.mvps.org/dmcritchie/excel/event.htm

--
HTH,
David McRitchie, Microsoft MVP -- Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm


"spgandau" wrote in message ...
I am trying to use the mouse to select a cell, and based on that cell
selection, I want a macro to execute.....but I do not see any excel functions
or VBA functions that will activate upon any mouse click/selection.

Any help would be appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default using mouse click events in macros

Events such as sheetbefore right-click and sheetbefore double-click will run
code.

See VBA help on mouse events.


Gord Dibben MS Excel MVP

On Fri, 11 Apr 2008 20:25:31 -0700, spgandau
wrote:

I am trying to use the mouse to select a cell, and based on that cell
selection, I want a macro to execute.....but I do not see any excel functions
or VBA functions that will activate upon any mouse click/selection.

Any help would be appreciated!


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default using mouse click events in macros

Just to add, there is no event that will fire when you single click on a cell.

There is an event that will fire when you change selection--either by using the
mouse or by using the arrow keys or even Edit|goto.



spgandau wrote:

I am trying to use the mouse to select a cell, and based on that cell
selection, I want a macro to execute.....but I do not see any excel functions
or VBA functions that will activate upon any mouse click/selection.

Any help would be appreciated!


--

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
How can I track the chart mouse events? george_scortaru Excel Programming 5 December 8th 05 02:58 PM
Mouseover or Mouse Move events Geoff[_9_] Excel Programming 0 April 4th 05 08:24 PM
Any mouse events for Worksheets? InExcelHell Excel Programming 0 January 10th 05 11:17 PM
Mouse Over Graph, Capture Information on Click(Double Click) Dean Hinson[_3_] Excel Programming 1 December 6th 04 04:49 AM
Mouse over events for Active X objects in excel Shrinu Excel Programming 1 May 26th 04 10:42 PM


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

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"