Good day, I have an excel question on how to reset dependent drop downs. I have used VBA to reset one drop down list, using the following:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$H$14" Then
Range("I14").Value = "Please select..."
End If
End Sub
How can I change that so that it applies to a range of rows? Like if a drop down on a row anywhere between H14:H50 is changed, then the depending drop down on the same row in the range from I14:50 gets reset and shows "Please select..."
There must be a better way then this:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$H$14" Then
Range("I14").Value = "Please select..."
End If
If Target.Address = "$H$15" Then
Range("I15").Value = "Please select..."
End If
If Target.Address = "$H$16" Then
Range("I16").Value = "Please select..."
End If
End Sub