K
Kevlar
I have this code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = ("$D$5") Then
If Range("$Q$9").Value <> "CA" Then
Range("$N$32").Value = "Out of State"
Else: Range("$N$32").Value = "In-State"
End If
End If
End Sub
I want the value in cell N32 to change based on what I have in cell Q
when I enter data into cell D5 and press enter.
It only works after I click on cell D5 (after changing d5 and pressin
enter)
What am i missing
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = ("$D$5") Then
If Range("$Q$9").Value <> "CA" Then
Range("$N$32").Value = "Out of State"
Else: Range("$N$32").Value = "In-State"
End If
End If
End Sub
I want the value in cell N32 to change based on what I have in cell Q
when I enter data into cell D5 and press enter.
It only works after I click on cell D5 (after changing d5 and pressin
enter)
What am i missing