No, try:
Sub torti111()
Dim i As Long, y
With Sheets("test1")
ReDim y(2 To 1000)
For i = LBound(y) To UBound(y)
Select Case .Cells(i, "G")
Case Is = "share sale", "cancellation"
.Range(.Cells(i, "A"), .Cells(i, "G")).Copy Sheets("Sale").Range("A" & Rows.Count).End(3)(2)
End Select
Next i
.Range(.Cells(1, "G"), .Cells(1000, "G")).AutoFilter 1, "share sale", xlAnd, "cancellation"
On Error Resume Next
.Range(.Cells(2, "G"), .Cells(1000, "G")).SpecialCells(12).EntireRow.Delete
On Error GoTo 0
.AutoFilterMode = False
End With
End Sub
Bookmarks