Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default 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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default 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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting and Interior.ColorIndex Farrar > Tweety Excel Programming 2 March 28th 08 05:28 PM
Conditional Formatting and Interior.ColorIndex Farrar > Tweety Excel Programming 3 March 26th 08 03:42 AM
Conditional formatting to change ColorIndex? J@Y Excel Programming 4 May 29th 07 02:57 PM
interior.colorindex used with conditional formatting Wazooli Excel Worksheet Functions 7 February 25th 05 01:01 AM
conditional formatting and interior.colorindex Wazooli Excel Programming 1 February 24th 05 05:53 PM


All times are GMT +1. The time now is 03:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"