I have a file that pulls data into a "summary" page. I want to be able to hide certain rows based off cell "C4"s input. Cell C4 has a drop down menu that chooses multiple different product info. For example the first input on the C4 Dropdown has info from row 8-32. The others sometimes only have info from rows 8-12, 8-17, 8-24, etc.
Currently my code is this... Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("C4"), Target) Is Nothing And Target.Cells.Count = 1 Then
Rows("12:31").Hidden = False
Select Case Target.Value
Case "Transaction Mail", "PPC Material Handling"
Rows("12:31").Hidden = False
Case "Parcels"
Rows("27:31").Hidden = True
Case "VEO", "Packets", "PIF Packets", "Admail"
Rows("17:31").Hidden = True
Case "PIF Material Handling", "IRU", "RVU", "PPC Others"
Rows("12:31").Hidden = True
Case Else
End Select
End If
End Sub
For some reason, this code will unhide everything for "Transaction mail" and hide the proper rows for "VEO" which is perfect, but every other variable that is inputted into the C4 cell, doesn't take.
Am I only limited to 2 variables? Should I be making multiple macros and have 1 macro basically activate them based off cell C4?
Next
doesn't close anIf
....End If
does, for starters. – BigBenOn Error Resume Next
s as those just hide potential errors. – BigBen