Is this what you mean?
VB:Option Explicit Sub HideRows() Dim MyRange As Range, cl As Range Set MyRange = Range("a4").CurrentRegion For Each cl In MyRange If cl.Value = "xxx" Then cl.EntireRow.Select Selection.EntireRow.Hidden = True End If Next cl End Sub


Reply With Quote
Bookmarks