This code works if i have two columns side by side both with zeros in them. But i need it to delete the row if the cell on the right has a value of 0. The cell on the left is a word if that makes a difference? Think of a shopping list with the items and their amounts needed in the column on the right
Sub DeleteRow()
Dim r As Long
Dim LastRow As Long
LastRow = Cells(Rows.Count, "b").End(xlUp).Row
For r = LastRow To 1 Step -1
If Cells(r, 1) = 0 Then
Rows(r).Delete
End If
Next r
End Sub