Hi,
I need to select all cells in a range which have 0 or null value and then delete entirerow.
I tried below code but it deletes some rows and eliminates others. Can you pls suggest something.
For Each c In ActiveSheet.Range("E2:E" & Lastrow).Cells
If c.Value = 0 Or c.Value = Null Then
Selection.EntireRow.Delete
c.Select
End If
Next
I need to select all cells in a range which have 0 or null value and then delete entirerow.
I tried below code but it deletes some rows and eliminates others. Can you pls suggest something.
For Each c In ActiveSheet.Range("E2:E" & Lastrow).Cells
If c.Value = 0 Or c.Value = Null Then
Selection.EntireRow.Delete
c.Select
End If
Next