Try this:
Dom![]()
Sub Delete_rows() Dim i As Long With Sheets("New") For i = .Cells(Rows.Count, "A").End(xlUp).Row To 2 Step -1 If .Cells(i, "V") > TimeSerial(23, 0, 0) Or Cells(i, "V") < TimeSerial(8, 0, 0) Then .Rows(i).Delete End If Next i End With End Sub
Bookmarks