To clarify:
1) Delete rows 1-13
2) Delete all rows where the word "District" appears in column A
3) Find all rows AFTER row 1 that are highlighted in blue and delete them
(these are separators that would mess up my sorting and I don't need them..
They come in with these cells filled with the color R 204, G 255, B 204).
First, let's find out what color Excel is using for the interior color
fill for the rows the web application is rendering "blue"
Sub findcolor()
MsgBox (Range("A4").Interior.ColorIndex)
End Sub
then give this a try:
Sub test()
Dim FilterRange As Range
FinalRow = Cells(Rows.Count, 1).End(xlUp).Row
'for #1 - delete rows 1 thru 13
Range("A1:A13").EntireRow.Delete
'for #2 - delete rows where column(a)="district"
'change H to whatever your last column is to include the entire area.
Set FilterRange = Range("A1:H" & FinalRow)
FilterRange.AutoFilter Field:=1, Criteria1:="District"
FilterRange.SpecialCells(xlCellTypeVisible).EntireRow.Delete
'for #3 - delete blue rows
For Each c In Range("A2:A" & FinalRow)
'presuming FindColor returned -4142
If c.Interior.ColorIndex = -4142 Then c.EntireRow.Delete
Next
End Sub
sub test()
range("A1:A13").entirerow.delete