I got two columns, Low and High, with values like this:
LowHigh.jpg
I have a code that is to fill the low cell with red color if Low.Value > High.Value.
If .Cells(i, ColLow).Value > .Cells(i, ColHigh).Value Then
.Cells(i, ColLow).Interior.Color = vbRed
End If
The problem is with the comma separated values.
If I have ex.
Low.Value is 3,2 and High.Value is 16.
It seems like the code is reading Low.Value 32 and High.Value 16, and executing wrong.
Can anyone help on this?
Thanks.