left click on cell run macro

bam12

Well-known Member
Joined
Dec 6, 2004
Messages
984
is it possible to click on cell in spreadsheet and it will run a macro
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Sure. Have a look at the SelectionChange event.

e.g. in the appropriate sheet module, put:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$5" Then MsgBox "You have selected A5"
End Sub
 
Upvote 0
Directly clicking on a cell to run your own macro? Don't think so. But there is a way around.
Click on a cell and press SHIFT and click on EDIT and select COPY PICTURE and then select the concerned cell of your's and press SHIFT and click on EDIT and select PASTE PICTURE. Now you can assign a macro to it.
HTH
 
Upvote 0
it is possible

i have a sheet i downloaded and it works there, but i can figure out the code so i can implement it into my sheet
 
Upvote 0
You can either use Oaktree's method and it just need the selection to be on the desired cell. Either by clicking on the cell or selecting it with arrow keys.
In the other way you are actually not clicking ON the CELL but only on an object placed over the cell.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top