Automatic Macro

K

k483

What's the syntax for executing a macro everytime a different cell gets
focus ?

thanks
 
J

jeff

HI,

Private Sub Worksheet_SelectionChange(ByVal Target As
Range)
If Target.Cells.Count > 1 Then Exit Sub
If Not Application.Intersect(Range("C4:C4"), Target)
Is Nothing Then runMyMacro
End Sub

jeff
 
Top