Hi, First I want to say i'm new to this forum and already it has been a great help. Looks like there are a lot of really experienced people on here.
I have a few cells that use data validation to generate a drop down lists from ranges elsewhere on the sheet. Some of those cells are dependent on previous cells. I have borrowed some VBA script from another post that clears the contents of dependent cells when a higher level item is changed. The only thing i'd like to change is that it clears the dependent cells even when you re-select the same choice from a higher level drop list. anyone have any ideas?
Here's the code i'm using:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("c7")) Is Nothing Then
Application.EnableEvents = False
Target.Offset(4, 0).ClearContents
Target.Offset(6, 0).ClearContents
Target.Offset(8, 0).ClearContents
Application.EnableEvents = True
End If
End Sub
Thanks again,
Jon
I have a few cells that use data validation to generate a drop down lists from ranges elsewhere on the sheet. Some of those cells are dependent on previous cells. I have borrowed some VBA script from another post that clears the contents of dependent cells when a higher level item is changed. The only thing i'd like to change is that it clears the dependent cells even when you re-select the same choice from a higher level drop list. anyone have any ideas?
Here's the code i'm using:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("c7")) Is Nothing Then
Application.EnableEvents = False
Target.Offset(4, 0).ClearContents
Target.Offset(6, 0).ClearContents
Target.Offset(8, 0).ClearContents
Application.EnableEvents = True
End If
End Sub
Thanks again,
Jon