PC Review


Reply
Thread Tools Rate Thread

Colorindex and conditional formatting

 
 
Libby
Guest
Posts: n/a
 
      20th Aug 2009
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.
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      20th Aug 2009
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 <(E-Mail Removed)>
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.


 
Reply With Quote
 
Libby
Guest
Posts: n/a
 
      21st Aug 2009
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 <(E-Mail Removed)>
> 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.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Conditional Formatting and Interior.ColorIndex Mike H Microsoft Excel Programming 1 28th Mar 2008 05:28 PM
RE: Conditional Formatting and Interior.ColorIndex JLGWhiz Microsoft Excel Programming 0 26th Mar 2008 03:42 AM
Conditional formatting to change ColorIndex? =?Utf-8?B?SkBZ?= Microsoft Excel Programming 4 29th May 2007 02:57 PM
interior.colorindex used with conditional formatting =?Utf-8?B?V2F6b29saQ==?= Microsoft Excel Worksheet Functions 7 25th Feb 2005 01:01 AM
conditional formatting and interior.colorindex =?Utf-8?B?V2F6b29saQ==?= Microsoft Excel Programming 1 24th Feb 2005 05:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:22 PM.