ziad alsayed
Well-known Member
- Joined
- Jul 17, 2010
- Messages
- 665
dear all
i am using th below code , and it is deleting about 19000 rows. the problem is that it is taking too long to delete them.
is there a way to make faster ?
appreciate any help.
i am using th below code , and it is deleting about 19000 rows. the problem is that it is taking too long to delete them.
is there a way to make faster ?
Code:
sub try()
Range("E1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$N$500000").AutoFilter Field:=5, Criteria1:="419", Operator:=xlFilterValues
Range("A1").CurrentRegion.Offset(1, 0).Select
Selection.EntireRow.Delete Shift:=xlUp
Range("A1").Select
ActiveSheet.Range("$A$1:$N$500000").AutoFilter Field:=5
Range("E1").Select
Selection.AutoFilter
Columns("E:E").Delete
end sub
appreciate any help.