Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, [B1]) Is Nothing Then
MsgBox "Cell B1 was changed" ' here you can call the macro you want to fire
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B5")) Is Nothing Then
"Your Code
End If
End Sub
Suppose a range like A5:C5 is selected and the change is made to A5 only, then do you want the macro to fire? I assumed not so limited the change to a single cell which has to be B5.Thank u
why did we need the target.count > 1?
cheers