I have a macro that is used to clean up a 268+ page text document. The macro deletes all of the repetitive page headers by using the Filter function and then deleting the non-essential rows. Each month the text file is a diffeent length and the starting row to be deleted once the filtering has been done, varies. Is there a way to be non-specific on which row to start the deleting process.
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.AutoFilter
ActiveSheet.Range("$A$7:$E$20000").AutoFilter Field:=1, Criteria1:=Array( _
" ", "ANNUAL", "DATE:", "INV NO. I", "MONTHLY", "QUARTERLY", "SEMI-ANNU", "SUBSIDIAR", "SUPP", _
"SUPPLIER", "TIME:", "TOTA", "TOTAL DUE", "="), Operator:=xlFilterValues
Range("A48").Select
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.EntireRow.Delete
Range("B5").Select
The Range "A48" is where I have the issue. The "A" will always be constant but the "48" will vary each month.
Thx
Bookmarks