-2
For n = 1 To 99
    If IsEmpty(Cells(n, 1)) Then
        Cells(n, 1).EntireRow.Delete
    End If
Next n

This is the code i have used, but it skips blank rows i have an idea about reverse loops to avoid this but haven't done myself. please help me i am a newbie in excel.

Thanks

Community
  • 1
  • 1
Rushabh
  • 1
  • 1

1 Answers1

0

Use this:

Sub ChkDis()

Dim rng As Range

Set rng = Sheet1.Range("B1:B99")
rng.SpecialCells(xlCellTypeBlanks).Cells.EntireRow.Delete

End Sub
Arya
  • 326
  • 2
  • 8