I am creating a worksheet that will print different BOM's depending on what is selected. I have every BOM listed in the workbook under different Worksheets. The Main Worksheet will have Different Drop-down List to be selected as needed to created the necessary BOM.
What i am wanting to do is hide the worksheets that do not apply to the selected item in the drop down list's.
This is what i have right now
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Me.Range("Media_System").Address Then
If Target.Value = "Shop Vac" Then
Sheets("Shop Vac Media Port Assembly").Visible = True
Sheets("Shop Vac Assembly").Visible = True
Sheets("Shop Vac Piping").Visible = True
Else
Sheets("Shop Vac Media Port Assembly").Visible = False
Sheets("Shop Vac Assembly").Visible = False
Sheets("Shop Vac Piping").Visible = False
End If
End If
End Sub
This will only work for one drop down list, i currently have (7) drop down lists with different options in each. How do i make this work for each.