Hi,
I am using drop down boxes (validation) and i want to clear the contents of 1 drop down cell when another drop down cell changes. Below is a code that works when i just click on the cell, but i want to modify it to be when a change occurs, not just with a click.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Address = "$D$17" Then <-- this is the cell that is changed
Range("D21").ClearContents <-- this is the cleared cell
End If
End Sub
Im using Excel 2003. Thank you for the help!
I am using drop down boxes (validation) and i want to clear the contents of 1 drop down cell when another drop down cell changes. Below is a code that works when i just click on the cell, but i want to modify it to be when a change occurs, not just with a click.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Address = "$D$17" Then <-- this is the cell that is changed
Range("D21").ClearContents <-- this is the cleared cell
End If
End Sub
Im using Excel 2003. Thank you for the help!