Hello this code does the following: Loops through all Sheets, looks for specifc Values within the Sheets ("08" and "09"). If found then paste entire row in a new sheet. I'm struggling with adding more values to search. So not only values "08","09" should be searched but als for example "10","11" and so on. Perhaps someone can help me modify it. Thanks
Sub Filter()
Dim ws As Worksheet, i%, C As Range, D As Range, E As Range
Application.ScreenUpdating = False
Set ws = Worksheets.Add(before:=Worksheets(1))
For i = 2 To Worksheets.Count
With Worksheets(i)
Set C = .Columns("A").Find(What:="Day", LookAt:=xlWhole, SearchDirection:=xlNext)
Set D = .Cells(Rows.Count, "A").End(xlUp)(1, 4)
Set E = ws.Cells(Rows.Count, "A").End(xlUp)(2)
E = C.Value: E(2) = "'08": E(3) = "'09"
.Range(C, D).AdvancedFilter 2, E.Resize(3), E(4), False
E.Resize(3 - CInt(E.Row <> 2)).EntireRow.Delete
End With
Next
Application.ScreenUpdating = True
End Sub