Macro to delete row after certain condition found
Solved/Closed
wendelly
Posts
4
Registration date
Thursday April 3, 2014
Status
Member
Last seen
April 4, 2014
-
Apr 3, 2014 at 03:39 PM
wendelly Posts 4 Registration date Thursday April 3, 2014 Status Member Last seen April 4, 2014 - Apr 4, 2014 at 03:23 PM
wendelly Posts 4 Registration date Thursday April 3, 2014 Status Member Last seen April 4, 2014 - Apr 4, 2014 at 03:23 PM
Related:
- Macro to delete row after certain condition found
- Saints row 2 cheats - Guide
- Does instagram delete message requests after 4 weeks - Guide
- How to delete a row in word - Guide
- How to delete whatsapp account without login - Guide
- How to delete skype account permanently - Guide
5 responses
I presumed that there were titles on the Row 1, put this macro on the sheet you want to use it, in VBA project :
Regards
Public Sub DeleteRowIfCellZero_ColD()
Dim x As Long
Dim y As Long
x = Range("D65536").End(xlUp).Row
For y = x To 2 Step -1
If Cells(y, 4).Value = 0 Then
Rows(y + 1).EntireRow.Delete
End If
Next y
End Sub
Regards
wendelly
Posts
4
Registration date
Thursday April 3, 2014
Status
Member
Last seen
April 4, 2014
Apr 4, 2014 at 10:09 AM
Apr 4, 2014 at 10:09 AM
Hello, it would be the same column every time. Thanks.
wendelly
Posts
4
Registration date
Thursday April 3, 2014
Status
Member
Last seen
April 4, 2014
Apr 4, 2014 at 10:45 AM
Apr 4, 2014 at 10:45 AM
It would be column D.
wendelly
Posts
4
Registration date
Thursday April 3, 2014
Status
Member
Last seen
April 4, 2014
Apr 4, 2014 at 03:23 PM
Apr 4, 2014 at 03:23 PM
That worked brilliantly. Thanks.