I'm currently using this code to do look for empty cells in column L and if this cell is empty for the code to delete all data in that row between K and S. It works fine until I get to a consecutive blank row; when the code deletes the first row the code then moves to the next i but due to the shift it skips a blank line. (apologies for bad explanation)
Sub deleteempty2()
With Sheets("baml")
last2 = .Range("L" & Rows.Count).End(xlUp).Row
For i = 5 To last2
If .Cells(i, 12) = "" Then
.Range("k" & i & ":s" & i).delete Shift:=xlUp
last1 = last1 - 1
Else: End If
Next i
End With
End Sub
I tried including do until L5 <> "" followed with a loop, but this seemed to enter a perpetual loop.
Any suggestions welcome :)