Hello all
Not sure how to resolve this one but hoping someone could help.
My line of code is....
If cl.Value <> "" And cl.Value <= cl.Offset(0, 4).Value
If this is true then a popup occurs with certain data in it.
In some cases, but not all, cl.value would be -0.77 and cl.offset would be -1.08. Therefore, the pop up should not appear because the criteria in the if statement has not been met (-0.77 is not lower than -1.08). But in excel the pop-up has been occuring.
It seems that when two negative numbers are being compared excel does not recognise them. It recognises one negative compared against a positive though.
Has anyone seen this before and resolved it. I can't think how to through formatting etc etc.
Thanks & best regards
Not sure how to resolve this one but hoping someone could help.
My line of code is....
If cl.Value <> "" And cl.Value <= cl.Offset(0, 4).Value
If this is true then a popup occurs with certain data in it.
In some cases, but not all, cl.value would be -0.77 and cl.offset would be -1.08. Therefore, the pop up should not appear because the criteria in the if statement has not been met (-0.77 is not lower than -1.08). But in excel the pop-up has been occuring.
It seems that when two negative numbers are being compared excel does not recognise them. It recognises one negative compared against a positive though.
Has anyone seen this before and resolved it. I can't think how to through formatting etc etc.
Thanks & best regards