The following code successfully moves rows meeting specific criteria, from one worksheet to another
However, the code fails when there are more than ~15K rows which meet the criteria. In such cases, nearly all rows in "Data" get moved to "ebsco", whether they meet the criteria or not.
I'd like to change the code so that it doesn't use AutoFilter at all. Can anyone help?
TIA
Code:
Sheets("Data").Columns("I:I").AutoFilter Field:=1, Criteria1:="=*ebscohost*", Operator:= _
xlAnd
Range("A1", Cells(Rows.count, "A").End(xlUp)).Resize(, 12).Copy Sheets("ebsco").Range("A1")
Sheets("Data").Range("A2", Range("A2").End(xlDown)).EntireRow.Delete
ActiveSheet.ShowAllData
However, the code fails when there are more than ~15K rows which meet the criteria. In such cases, nearly all rows in "Data" get moved to "ebsco", whether they meet the criteria or not.
I'd like to change the code so that it doesn't use AutoFilter at all. Can anyone help?
TIA