• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

need help to find out flaw

ANKUSHRS1

Member
i have written below macro. in dis macro i want to delete blank record. this macro run correctly sometime but not all the time..rows aren't got deleted evenif match condition.....pls help....

[Sub delete_blank_cell()
Dim c As Long
Dim i As Long
Dim a As Long

c = a + 40



For i = c To a Step -1

If Range("d" & i).Value = "" Then

Range("d" & i).EntireRow.Delete Shift:=xlUp

End If

Next


End Sub]
 

Attachments

  • sample file1.xlsm
    19.1 KB · Views: 3
Back
Top