Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Colorindex in a Conditional Format

Hi
the conditional format does NOT change the colorindex property. So
though it is possible to check for the condtions you may better check
the conditions manually in your code

--
Regards
Frank Kabel
Frankfurt, Germany


lance wrote:
If a cells interior is set to red through conditional formatting,
where do you programatically check for red

.cells(1,1).interior.colorindex

does not seem to change when set by conditional format.

Lance


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Colorindex in a Conditional Format

I understand what Frank is saying, but it may not be clear to you. Frank is
saying there is no direct way to check the color in the cell which is
produced through conditional formatting. A more direct approach is to check
the same condition the conditional formatting is checking.

An generalized approach is to do that dynamically as Chip Pearson
demonstrates -

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

--
Regards,
Tom Ogilvy


"Frank Kabel" wrote in message
...
Hi
the conditional format does NOT change the colorindex property. So
though it is possible to check for the condtions you may better check
the conditions manually in your code

--
Regards
Frank Kabel
Frankfurt, Germany


lance wrote:
If a cells interior is set to red through conditional formatting,
where do you programatically check for red

.cells(1,1).interior.colorindex

does not seem to change when set by conditional format.

Lance




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Colorindex in a Conditional Format

It was clear, but thanks for the clarification. I looked for the condition and was able to move on. Thanks for the feedback (both of you)

Lance

"Tom Ogilvy" wrote:

I understand what Frank is saying, but it may not be clear to you. Frank is
saying there is no direct way to check the color in the cell which is
produced through conditional formatting. A more direct approach is to check
the same condition the conditional formatting is checking.

An generalized approach is to do that dynamically as Chip Pearson
demonstrates -

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

--
Regards,
Tom Ogilvy


"Frank Kabel" wrote in message
...
Hi
the conditional format does NOT change the colorindex property. So
though it is possible to check for the condtions you may better check
the conditions manually in your code

--
Regards
Frank Kabel
Frankfurt, Germany


lance wrote:
If a cells interior is set to red through conditional formatting,
where do you programatically check for red

.cells(1,1).interior.colorindex

does not seem to change when set by conditional format.

Lance





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Colorindex in a Conditional Format

Hi Tom
after re-reading my post I just could say: thanks for the clarification
<vbg
Definetely needed even if the OP was able to decipher it :-)

--
Regards
Frank Kabel
Frankfurt, Germany


Tom Ogilvy wrote:
I understand what Frank is saying, but it may not be clear to you.
Frank is saying there is no direct way to check the color in the cell
which is produced through conditional formatting. A more direct
approach is to check the same condition the conditional formatting is
checking.

An generalized approach is to do that dynamically as Chip Pearson
demonstrates -

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


"Frank Kabel" wrote in message
...
Hi
the conditional format does NOT change the colorindex property. So
though it is possible to check for the condtions you may better

check
the conditions manually in your code

--
Regards
Frank Kabel
Frankfurt, Germany


lance wrote:
If a cells interior is set to red through conditional formatting,
where do you programatically check for red

.cells(1,1).interior.colorindex

does not seem to change when set by conditional format.

Lance


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
New Conditional Format Overriding Previous Conditional Format Rene Excel Discussion (Misc queries) 3 February 27th 08 06:08 PM
How to get cell colorindex of conditional formatted cells [email protected] Excel Discussion (Misc queries) 5 December 2nd 06 01:07 PM
interior.colorindex used with conditional formatting Wazooli Excel Worksheet Functions 7 February 25th 05 01:01 AM
ColorIndex K Bro Excel Programming 0 February 7th 04 03:30 PM


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

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

About Us

"It's about Microsoft Excel"