I want to have a table filter and remove the items that are not needed. However, when I try to filter the four items that need to be removed, I receive the following error message - Compile error: Named argument not found.
The column I am filtering is 15. The items I want to filter and remove are INF, IWC, ONF, OWC. I only want to see COB.
Sub DeleteRows()
With Sheet2
With .ListObjects("Table13").DataBodyRange
.AutoFilter
.AutoFilter Field:=15, Criteria1:="INF", "IWC", "ONF", "OWC"
.EntireRow.Delete
.AutoFilter
End With
End With
End Sub
ListObject.Range.AutoFilter(the 4th line in your code) removes autofilter.Microsoft documentation: