Hi,
I have this vba below. It's designed to delete a row if the value in B is "0" within the given range.
However, it only works in certain situations. For example, it will delete the "Fair" and "Very Good" rows but not the "Excellent" row as well. Any ideas?
Thank you
I have this vba below. It's designed to delete a row if the value in B is "0" within the given range.
Code:
' Delete Macro
'
Dim cell As Range
For Each cell In Range("A4:B8")
If cell.Value = "0" Then
cell.EntireRow.Delete
End If
Next cell
'
End Sub
However, it only works in certain situations. For example, it will delete the "Fair" and "Very Good" rows but not the "Excellent" row as well. Any ideas?
Thank you