Hi, I am trying to delete rows that have a zero value in column E. I have tried various methods and keep getting 'object does not support this property or method' or 'type mismatch errors. Currently I have:
I have also tried
and
The errors are occurring on the bold lines. Can anyone point me in the direction of what I am doing wrong?
Thanks in advance
Thanks
Code:
For deleterow = .Range("E" & Rows.Count).End(xlUp).Row To 1 Step -1
[B] If .Range("E" & deleterow).Value = 0 Then[/B]
Rows(deleterow).EntireRow.Delete
End If
Next deleterow
I have also tried
Code:
'For i = lastRow To 1 Step -1
' [B]If .Range("E" & i).Value = 0 Then[/B]
' Range("E" & i).EntireRow.Delete
' End If
' Next i
Code:
' For i = lastRow To 1 Step -1
' [B] If .Range("E" & i).Value2 = 0 Then .Rows(i).Delete[/B]
'Next i
Thanks in advance
Thanks