Hi,
I am looking to hide/unhide rows based on a drop down validation.
The below codes works for one drop down however I have a further 2 drop downs that need to hide different rows.
any help will be greatly appreciated.
Private Sub Worksheet_Change(ByVal Target As Range)
'Updated by Extendoffice 20180822
If Target.Column = 9 And Target.Row = 5 Then
If Target.Value = "No" Then
Application.Rows("52:62").Select
Application.Selection.EntireRow.Hidden = True
ElseIf Target.Value = "Yes" Then
Application.Rows("52:62").Select
Application.Selection.EntireRow.Hidden = False
End If
End If
End Sub
I am looking to hide/unhide rows based on a drop down validation.
The below codes works for one drop down however I have a further 2 drop downs that need to hide different rows.
any help will be greatly appreciated.
Private Sub Worksheet_Change(ByVal Target As Range)
'Updated by Extendoffice 20180822
If Target.Column = 9 And Target.Row = 5 Then
If Target.Value = "No" Then
Application.Rows("52:62").Select
Application.Selection.EntireRow.Hidden = True
ElseIf Target.Value = "Yes" Then
Application.Rows("52:62").Select
Application.Selection.EntireRow.Hidden = False
End If
End If
End Sub