ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Colorindex and conditional formatting (https://www.excelbanter.com/excel-programming/432682-colorindex-conditional-formatting.html)

Libby

Colorindex and conditional formatting
 
Hey Guys,

I'm looping through some cells which have conditional formatting applied to
make then green, red or grey. The colours all represent the same thing (i.e.
green = yes), but the criteria that applies the format is not constant
throughout.

To avoid this I attempted to use the interior colorindex to return the
status of the cell, but the colorindex property seems to ignore the colours
resulting from the conditional formattng.

Does anyone know how to return the interior colour of a cell that results
from conditional formatting without using the value of the cell?

Many thanks in advance.

Gord Dibben

Colorindex and conditional formatting
 
Quite involved code but see Chip Pearson's site.

http://www.cpearson.com/excel/CFColors.htm


Gord Dibben MS Excel MVP

On Thu, 20 Aug 2009 15:07:01 -0700, Libby
wrote:

Hey Guys,

I'm looping through some cells which have conditional formatting applied to
make then green, red or grey. The colours all represent the same thing (i.e.
green = yes), but the criteria that applies the format is not constant
throughout.

To avoid this I attempted to use the interior colorindex to return the
status of the cell, but the colorindex property seems to ignore the colours
resulting from the conditional formattng.

Does anyone know how to return the interior colour of a cell that results
from conditional formatting without using the value of the cell?

Many thanks in advance.



Libby

Colorindex and conditional formatting
 
Thanks Gord - I have looked at Chip's code. I was kinda hoping there would
be a simpler solution...

"Gord Dibben" wrote:

Quite involved code but see Chip Pearson's site.

http://www.cpearson.com/excel/CFColors.htm


Gord Dibben MS Excel MVP

On Thu, 20 Aug 2009 15:07:01 -0700, Libby
wrote:

Hey Guys,

I'm looping through some cells which have conditional formatting applied to
make then green, red or grey. The colours all represent the same thing (i.e.
green = yes), but the criteria that applies the format is not constant
throughout.

To avoid this I attempted to use the interior colorindex to return the
status of the cell, but the colorindex property seems to ignore the colours
resulting from the conditional formattng.

Does anyone know how to return the interior colour of a cell that results
from conditional formatting without using the value of the cell?

Many thanks in advance.





All times are GMT +1. The time now is 07:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com