Hi I need to remove all the empty rows, I have written this code but it removes 1 row at a time.
regards,
Code:
Sub RRow()
lastrow = Cells(Rows.count, "A").End(xlUp).Row
Dim rng As Range: Set rng = Application.Range("A1:A" & lastrow)
Dim cel As Range
For Each cel In rng.Cells
If cel.Value = "" Then cel.EntireRow.Delete
Next cel
End Sub
regards,
Last edited: