Lifterlady16
New Member
- Joined
- Aug 14, 2018
- Messages
- 6
I've used a formula found in another post that is working for me, currently. It's to Hide rows based on a particular criteria as you select fields. However, if the user goes back and changes the criteria, it does not unhide the row in question. How do I alter this code to then unhide if the criteria changes?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("B5").Value = "No" Then
Rows("6:6").EntireRow.Hidden = True
ElseIf Range("B6").Value = "Yes" Then
Rows("6:6").EntireRow.Hidden = False
End If
End Sub
[code]