I have a range in excel which gets loaded into an array, I then perform calculations on the array and write it back to the same range.
I would like to be able to colour the cells say blue if the new cell value is less than previous and red if greater than previous value.
The only way I can think of currently is to compare every value between the initial array and newly calculated array and change the corresponding cell formatting individually. Is there a quicker more efficient method than this? Eg is there a method to write a range of colours/formats back to excel in 1 hit to maintain speed within the code?
Thanks,
Os
I would like to be able to colour the cells say blue if the new cell value is less than previous and red if greater than previous value.
The only way I can think of currently is to compare every value between the initial array and newly calculated array and change the corresponding cell formatting individually. Is there a quicker more efficient method than this? Eg is there a method to write a range of colours/formats back to excel in 1 hit to maintain speed within the code?
Thanks,
Os