I'm trying to use two choices for an Intersect
in Worksheet_Change
but the code below does not work. Nothing happens when I run the macro, even when I use Not Intersect Is Nothing
, it still does not work.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Range("A3:A100")) Then
MsgBox "column A" & Target.Value
End If
If Intersect(Target, Range("B3:B100")) Then
MsgBox "column B" & Target.Value
End If
End Sub