Hi All
I have this piece of code that is giving me a Runtime error 424
I need it to check every cell in V and every green cell with value 0 it need it to remove its colour, can anyone tell me why I am getting the error.
Thanks Dan
I have this piece of code that is giving me a Runtime error 424
I need it to check every cell in V and every green cell with value 0 it need it to remove its colour, can anyone tell me why I am getting the error.
Code:
Dim b As Long
Dim i as Long
Dim D As Range
b = 2
For Each D In Range("V2:V" & i - 1)
If D.Value = Value.Interior.Color = vbGreen And D.Value = "0" Then 'error occurs here
D.Interior.Color = xlNone
b = b + 1
End If
Next D
Thanks Dan