I am trying to hide all the rows if the B column value has the value "x". This is what I have so far:
Public Sub HideRowsOOS()
Application.ScreenUpdating = False
With ActiveSheet
For Each cell In Range("B2:B")
If cell.Value = "x" Then
cell.EntireRow.Hidden = True
End If
Next cell
Application.ScreenUpdating = True
End Sub