Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to run when cell click
I'm trying to write a macro to call a userform when you click in a cell. This
is what i've got which works when someone types a character in the cell. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$C$5" Then userform1.show End If End Sub Any way to change this so the form is called when the cell is selected? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to run when cell click
Just make it SelectionChange should work.
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$C$5" Then userform1.show End If End Sub "Brad" wrote: I'm trying to write a macro to call a userform when you click in a cell. This is what i've got which works when someone types a character in the cell. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$C$5" Then userform1.show End If End Sub Any way to change this so the form is called when the cell is selected? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to run a macro upon a cell click | Excel Programming | |||
Is this possible? Click a cell to run a macro | Excel Programming | |||
Macro on cell click?? | Excel Programming | |||
Macro on cell click?? | Excel Programming | |||
Run Macro on Cell Click.. | Excel Programming |