[FONT="]hi, i have the below code to clear value of Dependent drop downs (C13:C22) when selection changes in parent drop downs(B12:B22) but i have an issue. i have rows with some data above B13 and when there is a change in the any of cell between B1 to B12 the corresponding column values are also becoming blank. Please guide me how do i restrict tthe below code to make dependent list blank for cells C13:C22 only.[/FONT]
[FONT="]Private Sub Worksheet_Change(ByVal Target As Range)[/FONT]
[FONT="]‘clear contents of dependent cells
[/FONT]
[FONT="]Private Sub Worksheet_Change(ByVal Target As Range)[/FONT]
[FONT="]‘clear contents of dependent cells
Rich (BB code):
Dim sht As Worksheet
Set sht = ThisWorkbook.Sheets(“Billing”)[/FONT]
Rich (BB code):
[FONT="]On Error Resume Next
If Target.Validation.Type = 3 Then
Application.EnableEvents = False
Select Case Target.Column[/FONT]
[FONT="]Case 2 ‘clear columns C and D
Target.Offset(0, 1).ClearContents
‘ Target.Offset(0, 2)).ClearContents
‘ Case 3 ‘clear column D
‘ Target.Offset(0, 1).ClearContents
End Select
End If[/FONT]
[FONT="]exitHandler:
Application.EnableEvents = True
Exit Sub[/FONT]
[FONT="]End Sub