I am guessing that you will have your mouth open in surprise when you read this. The answer is from "left field" to say the least.
After a lot of checks I learned that the test was failing for AF4 because -1.9 does not equal -1.9
I have no explanation (yet) but when I narrowed it down and only allowed cell AF4 to go through the macro mincer, that is what VBA told me! When I took one number away from the other, VBA refused to do the maths and reported an incompatibility.
My solution (believe it or not) is to multiply BOTH sides of your condition by 10 and then by magic -19 equals -19.
(I guess any number would do)
I have modified the code slightly (personal preference), and got rid of some unnecessary brackets.
So replace
with
run the code and report back!
Bookmarks