Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is this possible? Click a cell to run a macro
I would like the users to be able to run a macro but not from the
menu bar. Is it possible for users to click a cell to run a macro? If not, what's the closest thing to it? Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is this possible? Click a cell to run a macro
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address() = "$A$1" Then Call "myMacro" End If End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is this possible? Click a cell to run a macro
| Private Sub Worksheet_SelectionChange(ByVal Target As Range) | | If Target.Address() = "$A$1" Then | | Call "myMacro" | | End If | | | End Sub | | 1. the code above should be put in sheet area in VBA editor 2. of course "myMacro" is the name of a macro so write it without quotation marks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Click in cell to run macro | Excel Discussion (Misc queries) | |||
Macro on cell click?? | Excel Programming | |||
Macro on cell click?? | Excel Programming | |||
Run Macro on Cell Click.. | Excel Programming | |||
Run Macro on Cell Click.. | Excel Programming |