Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you, I had a loop performing this, but thought the autofilter would be
faster, and it is. " wrote: I would try something like this: Looping through values in Column A and deleting the rows for cells containg your criteria. This would be quite slow for 65,000 lines though. There may be a better way. And I'm not sure if there are any flaws in my code. Sub DeleteEntries() Range("A1").Select Do Until IsEmpty(ActiveCell) If ActiveCell.Value = "DCNSU" Or ActiveCell.Value = "DUPCTRL" Then ActiveCell.EntireRow.Select Selection.Delete Shift:=xlUp End If ActiveCell.Offset(1, 0).Select Loop End Sub Somethinglikeant |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data filter and deleting rows in visual basic | Excel Discussion (Misc queries) | |||
advance filter sustitution in a macro - shared workbook | Excel Worksheet Functions | |||
Deleting rows in filter mode - Excel 2007 | New Users to Excel | |||
Advance filter search does not filter an exact match | Excel Programming | |||
Deleting rows which match filter | Excel Programming |