OK. This works during testing for any pattern. It fills the "inbetween rows" with the word "Today" then just loops through to delete all cells with the word.
See attached.
Option Explicit
Sub delete_rows()
Dim c As Range, lrow As Long, i As Long
lrow = Cells(Rows.Count, 2).End(xlUp).Row
Application.ScreenUpdating = False
For Each c In Range("A1:A" & lrow)
If c.Value = "Today" And c.Offset(1, 0).Value = vbNullString Then
c.Offset(1, 0).Value = "Today"
End If
Next c
For i = lrow To 1 Step -1
For Each c In Range("A1:A" & lrow)
If c.Value = "Today" Then c.EntireRow.Delete
Next c
Next i
Application.ScreenUpdating = True
End Sub
Bookmarks