B
bw
This code is not executing when I put a 1 or 2 in Cell A1. Isn't it suppose
to? What have I done wrong?
Thanks,
Bernie
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Address = "$A$1" Then
Select Case Target.Value
Case Is = 1: MsgBox "A1 changed to 1"
Case Is = 2: MsgBox "A1 changed to 2"
End Select
End If
End Sub
to? What have I done wrong?
Thanks,
Bernie
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Address = "$A$1" Then
Select Case Target.Value
Case Is = 1: MsgBox "A1 changed to 1"
Case Is = 2: MsgBox "A1 changed to 2"
End Select
End If
End Sub