I have drop down lists in 3 cells, C3, C4, and C5 each has 1-4 to pick from. I have the descriptions in row 7:66. If 1 is chosen in C3, I want to hide 10:66, if 1 is chosen in C4 I want to show row 10 and hide 11:66 (if 2 is selected hide 12:66, 3 - 13:66, 4 - 14:66). Lastly if 1 is selected in the 3rd option I want to show 7:15 and hide every thing else. I would like this for every combination. I am able to hide the rows for the 1st drop down but can't get the rest. I am using then follwing code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("C3")) Is Nothing Then
Rows("7:66").Hidden = True
Select Case Target.Value
Case Is = 1
Rows("7:21").Hidden = False
Case Is = 2
Rows("7:36").Hidden = False
Case Is = 3
Rows("7:51").Hidden = False
Case Is = 4
Rows("7:66").Hidden = False
Case Else
Rows("7:66").Hidden = False
End Select
End If
End Sub
Is it possible to hide rows that are not stacked on top of each other based on three different drop downs?
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("C3")) Is Nothing Then
Rows("7:66").Hidden = True
Select Case Target.Value
Case Is = 1
Rows("7:21").Hidden = False
Case Is = 2
Rows("7:36").Hidden = False
Case Is = 3
Rows("7:51").Hidden = False
Case Is = 4
Rows("7:66").Hidden = False
Case Else
Rows("7:66").Hidden = False
End Select
End If
End Sub
Is it possible to hide rows that are not stacked on top of each other based on three different drop downs?