I'm a complete novice with VBA codes, I've added the below to hide columns based on a drop down menu but I also want to hide tabs based on the same drop down menu but have no idea how, any ideas?
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 And Target.Row = 3 And Target.Value = "No" Then
Application.Columns("F").Select
Application.Selection.EntireColumn.Hidden = True
Else
Application.Columns("F").Select
Application.Selection.EntireColumn.Hidden = False
End If
If Target.Column = 2 And Target.Row = 3 And Target.Value = "Yes" Then
Application.Columns("E").Select
Application.Selection.EntireColumn.Hidden = True
Else
Application.Columns("E").Select
Application.Selection.EntireColumn.Hidden = False
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 And Target.Row = 3 And Target.Value = "No" Then
Application.Columns("F").Select
Application.Selection.EntireColumn.Hidden = True
Else
Application.Columns("F").Select
Application.Selection.EntireColumn.Hidden = False
End If
If Target.Column = 2 And Target.Row = 3 And Target.Value = "Yes" Then
Application.Columns("E").Select
Application.Selection.EntireColumn.Hidden = True
Else
Application.Columns("E").Select
Application.Selection.EntireColumn.Hidden = False
End If
End Sub