Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Im using Excel 97. Im not a programmer. Using the macro recorder to learn
coding. Im working on a situation where Im selecting data using the AutoFilter. Once the criteria is made, I want to delete the rows selected. The recorder lists it as: Range("A1").Select Selection.AutoFilter Selection.AutoFilter Field:=4, Criteria1:="=DCNSU", Operator:=xlOr, _ Criteria2:="=DUPCTRL" ActiveCell.Offset(1, 0).Rows("1:65000").EntireRow.Select Selection.Delete Shift:=xlUp I changed the rows selection to read 1:65000¦ because I dont anticipate the selection ever being larger than 65000 rows. However I cant be exactly sure, and I would perfer it to reflect variable changing rows? Can someone tell me how to re-code this? Thanks in advance. |
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 |