Detect if conditional format is true
Hi people,
I have a worksheet with lots of different conditional
formats in different cells.
I want to be able to count all the red(or yellow etc)
cells on my worksheet.
However, this may mean cells that I have formatted
manually, which I know I can count using a test on cells
(x,y).interior.colorindex to increment a variable; or it
could mean cells that have been coloured in red by the
conditional format (using condition 1, 2 or 3, and a
different unrelated formula for each cell).
Hope you can help me,
Bill J. Duke
|