Hi
I have data from column a to column b, I need code if any cell blank or having value 0 in column b then entire row would delete.
Thanks in advance.
Hi
I have data from column a to column b, I need code if any cell blank or having value 0 in column b then entire row would delete.
Thanks in advance.
Hi
try
Code:Sub kTest() With Intersect(ActiveSheet.UsedRange, Range("b:b")) On Error Resume Next .Replace "0", vbNullString, 1 .SpecialCells(4).EntireRow.Delete End With End Sub
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
Bookmarks