using mouse click events in macros

S

spgandau

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!
 
G

Gord Dibben

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

See VBA help on mouse events.


Gord Dibben MS Excel MVP
 
D

Dave Peterson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top