Sub t()
If Sheet1.Range("A1") <> "" Then
Rows("2:5").Hidden = True
Else
Rows("2:5").Hidden = False
End If
End Sub
Sub t2()
Dim c As Range
With ActiveSheet
For Each c In .Range("L2", .Cells(Rows.Count, "L").End(xlUp))
If LCase(c.Value) = "live" Or LCase(c.Value) = "run" Or LCase(c.Value) = "ord" Or LCase(c.Value) = "sto" Then
c.EntireRow.Hidden = True
End If
Next
End With
End Sub
Sub t3()
Dim c As Range
With ActiveSheet
For Each c In .Range("L2", .Cells(Rows.Count, "L").End(xlUp))
If InStr(LCase(c.Value), "live") > 0 Or InStr(LCase(c.Value), "ord") Or _
InStr(LCase(c.Value), "run") > 0 Or InStr(LCase(c.Value), "sto") > 0 Then
c.EntireRow.Hidden = True
End If
Next
End With
End Sub