Hi all,
Is there anyway to make VBA recognize periods as 0s. I have a macro that color codes an automatically generated report, but sometimes 0's show up normally and sometimes as periods (.). This makes rows that should appear green (CC: 3407718) not do so.
Here is my current code:
This only happens in Cells(i, 13) and Cells(i, 14), so only these would need modification. Thanks!
Is there anyway to make VBA recognize periods as 0s. I have a macro that color codes an automatically generated report, but sometimes 0's show up normally and sometimes as periods (.). This makes rows that should appear green (CC: 3407718) not do so.
Here is my current code:
HTML:
i = 2
Do While Cells(i, 1) <> ""
If Cells(i, 13) = Cells(i, 14) And Cells(i, 11) = Cells(i, 12) Then
Range("A" & i, "W" & i).Interior.Color = 3407718
ElseIf Cells(i, 21) > 70 And Cells(i, 21) < 150 Then
Range("A" & i, "W" & i).Interior.Color = 65535
End If
i = i + 1
Loop
This only happens in Cells(i, 13) and Cells(i, 14), so only these would need modification. Thanks!
Last edited: