My code tests one range against another and changes the interior colour
If the two ranges are equal the interior colour should change to orange. If the 2nd is less than the first then the interior colour should change to red.
Please Login or Register to view this content.
I ran my code outputting the value of rng4, rng5 and the cell address of rng4 and rng5.
27.63 27.63 $J$7 $J$8
2.75 2.76 $K$7 $K$8
12.46 12.46 $L$7 $L$8
$M$7 $M$8
$N$7 $N$8
24.87 24.87 $O$7 $O$8
15.17 15.17 $P$7 $P$8
$Q$7 $Q$8
$R$7 $R$8
$S$7 $S$8
$T$7 $T$8
9.7 9.7 $U$7 $U$8
$V$7 $V$8
$W$7 $W$8
$X$7 $X$8
$Y$7 $Y$8
$Z$7 $Z$8
Based on these numbers J8, L8, O8, P8 and U8 should all be orange.
But only J8 and L8 are orange.
O8 and P8 are red.
U8 is unchanged.
I cannot work out why!
Any ideas on where I might be going wrong?
Bookmarks