Is the sample truly representative?
Meanwhile try this:
Sub Iamnew(): Dim we As Worksheet, wa As Worksheet, r As Long, H As Range, E
Set we = Sheets("Example sheet ") 'Trailing Space in Sheet Name
Worksheets.Add(After:=Worksheets(Worksheets.count)).Name = "to achieve"
Set wa = Sheets("to achieve"): we.Cells.Copy wa.Cells(1, 1)
E = wa.Range("E1:E" & wa.Rows.Find("*", , , , xlByRows, xlPrevious).Row)
For r = 3 To UBound(E)
If LCase(E(r, 1)) <> "pass" Then
If H Is Nothing Then Set H = Rows(r) Else Set H = Union(H, Rows(r))
End If
Next r: H.EntireRow.Hidden = True: End Sub
Bookmarks