macro to delete entire rows when column A is blank ...a quick macro

V

vikram

a macro which can quickly delete entire row when column A is blank

please help me with this
thank u so much frnd
 
F

Frank Kabel

Hi
one way:
Sub delete_rows()
Dim RowNdx As Long
Dim LastRow As Long
Application.ScreenUpdating = False
LastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).row
For RowNdx = LastRow To 1 Step -1
with Cells(RowNdx, "A")
if .value = "" then
Rows(RowNdx).Delete
End If
end with
Next RowNdx
Application.ScreenUpdating = True
End Sub
 
D

Don Guillett

try this
Sub RowBeGone()
Columns("A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
 
V

vikram

thank u so much


u guys are amazing
thank u so much
my macro was very slow
thanks agai
 
Top