This is the most common way to delete rows, but I don't think it's what you're looking for
Option Explicit
Sub DeleteRows()
Dim r As Range
Dim i As Long, n As Long
With ActiveSheet
n = .Cells(.Rows.Count, 18).End(xlUp).Row
For i = n To 6 Step -1
If .Cells(i, 18).Value = .Cells(i - 1, 18).Value Then
.Cells(i, 18).Interior.Color = vbRed
' .entirerow(i).delete
End If
Next i
End With
End Sub
It sound like you want to delete by pairs of rows???
Case 1 -- 2 1/2 pairs
1000
1000
1000
1000
1000 <<<<<<<<<< leave this???
2000
2000
2000
2000
Case 2 -- single repeats
1000
1000
1000
1000
2000
2000
2000
2000
1000 <<<<<<< leave this?
3000
3000