Sub deleteblankrows()
Dim LRow As Long
LRow = Range("A65536").End(xlUp).Row
For i = LRow To 2 Step -1
If Range("A" & i).Value = "" Then
Range("A" & i).EntireRow.Delete
End If
Next i
End Sub
Do you really need a macro? This can be done with just a few mouse clicks (Edit, Go To, Special, Blanks, Edit, Delete, Entire Row)
Columns("A:A").Select
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.EntireRow.Delete