I'm sure there is an easy solution to this, but I can't figure it out. I am trying to create a form in Excel that has multiple drop down lists and I would like to have a macro that will replace some cell values with "N/A" is no is selected from the drop down. I can get it to work on this first, but I can't get it to recognize the second change. Here is what I have so far.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$16" Then
If Range("C16").Value = "No" Then
Range("C18").Value = "N/A"
Range("D21").Value = "N/A"
Range("F21").Value = "N/A"
Range("C23").Value = "N/A"
Else
Range("C18").Value = ""
Range("D21").Value = ""
Range("F21").Value = ""
Range("C23").Value = ""
End If
End If
End Sub
Private Sub Worksheet_Change1(ByVal Target As Range)
If Target.Address = "$D$25" Then
If Range("D25").Value = "No" Then
Range("D27").Value = "N/A"
Range("C29").Value = "N/A"
Range("F29").Value = "N/A"
Else
Range("D27").Value = ""
Range("C29").Value = ""
Range("F29").Value = ""
End If
End If
End Sub