Easier way to do Macro
Posted by Jimmy on September 05, 2001 9:29 AM
Here is a macro that I recorded, is there a better way to do this, so maybe some of this can be combined and have it do the deletes all at the same time rather than having to filter each time then delete?
Sub Macro2()
'
' Macro2 Macro
' Macro recorded 09/05/2001 by Jimmy
'
'
Selection.AutoFilter Field:=1, Criteria1:="9"
Rows("2:2000").Select
Selection.Delete Shift:=xlUp
Selection.AutoFilter Field:=1, Criteria1:="A"
Rows("2:2000").Select
Selection.Delete Shift:=xlUp
Selection.AutoFilter Field:=1, Criteria1:="D"
Rows("2:2000").Select
Selection.Delete Shift:=xlUp
Selection.AutoFilter Field:=1, Criteria1:="DD"
Rows("2:2000").Select
Selection.Delete Shift:=xlUp
Selection.AutoFilter Field:=1, Criteria1:="R"
Rows("2:2000").Select
Selection.Delete Shift:=xlUp
Selection.AutoFilter Field:=1, Criteria1:="Q"
Rows("2:2000").Select
Selection.Delete Shift:=xlUp
Selection.AutoFilter Field:=1, Criteria1:="F"
Rows("2:2000").Select
Selection.Delete Shift:=xlUp
End Sub