I am hoping someone would help with this query. I have a spreadsheet that I get daily at work.
I am looking to delete every row on excel that does not contain certain values in col A.
VBA does not let me run the below code and I cannot work out why. Could someone help?
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$AR$3403").AutoFilter Field:=1, _
Criteria1:=Array("<>SKTRUSDBND", "<>1628", "<>1565", "<>OMSPSF"),
Operator:=xlFilterValues
Rows("2:1545").Select
Selection.Delete Shift:=xlUp
Rows("1:1").Select
Selection.AutoFilter