Excel does not have an Onclick Macro function
It dose have a :-
Worksheet_SelectionChange
Worksheet_BeforeDoubleClick
Worksheet_BeforeRightClick
I have used Worksheet_SelectionChange triggered macro (the code can be used in the other macro types mentiond
This macro wil run whenever a cell is selected.
The downside to it is if a cell is already selected you can not click on the cell a 2nd time - you need to select a different cell 1st. It will also run if you move the curser by using the arrow keys.
'These instructions pre typed & are worded to cater for the novice programmer
'To install macro to correct location
'Copy this macro
'GoTo Excel
'Select sheet this is to appy to
'Right Click on Sheet Name Tab > select View Code
'Past macro into the Worksheet Module displayed
You can even use a combiation of 2 types
This macro calls the Worksheet_SelectionChange macro if a cell is double clicked
Bookmarks