Hi all
I'm trying to write some code that will automatically clear the contents of two cells, E3 and F3 when the dropdown selection in column C3 changes, and for a range of rows 3 to 17.
The code that I have is
But I can't quite get it to work, what have I missed?
Thanks
I'm trying to write some code that will automatically clear the contents of two cells, E3 and F3 when the dropdown selection in column C3 changes, and for a range of rows 3 to 17.
The code that I have is
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Cell As Range
For Each Cell In Target
If Cell.Address = "$C$3:$C$17" Then
Application.EnableEvents = False
Range("$E$3:$F$17").ClearContents
Application.EnableEvents = True
End If
Next Cell
End Sub
But I can't quite get it to work, what have I missed?
Thanks