PC Review


Reply
Thread Tools Rate Thread

Conditional Formatted Colored Cells

 
 
=?Utf-8?B?UmljaGFyZCBQ?=
Guest
Posts: n/a
 
      19th Mar 2007
I am trying to count the number of "conditionally formatted cells" in Excel
2003 - SR2 using VB looking for SPECIFIC colors (Red, Green or Yellow). I
cannot do it with a macro or simple formula. I can create a VB code that
counts the colored cells but NOT if they are conditionally formatted colored
cells. Any ideas?

I have tried using lCol = rColor.Interior.ColorIndex to determine the
color index (normally Red, Green or Yellow) and, as stated, it only counts
those cells colored using the format tool bar and NOT conditionally set by a
formula or cell value as set. Thanks.
 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      19th Mar 2007

This is not a trivial undertaking.
You first have to determine if the cell is conditionally formatted
and then determine which of the CF formulas applied to the
cell are operative. Bob Phillips has more information and sample
VBA code at his website...
http://www.xldynamic.com/source/xld.CFConditions.html

I have a free "Determine Colors" Excel add-in available upon request.
It displays all the color particulars for a cell on the cell right-click
pop-up menu. It could be helpful to color-blind Excel users.
Remove the xxx from my email address. Be sure to include your
name and location if requesting the add-in.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Richard P" <Richard (E-Mail Removed)>
wrote in message
I am trying to count the number of "conditionally formatted cells" in Excel
2003 - SR2 using VB looking for SPECIFIC colors (Red, Green or Yellow). I
cannot do it with a macro or simple formula. I can create a VB code that
counts the colored cells but NOT if they are conditionally formatted colored
cells. Any ideas?

I have tried using lCol = rColor.Interior.ColorIndex to determine the
color index (normally Red, Green or Yellow) and, as stated, it only counts
those cells colored using the format tool bar and NOT conditionally set by a
formula or cell value as set. Thanks.
 
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
Counting Colored Cells that are Conditional Formated tom Microsoft Excel Misc 3 14th May 2010 02:13 AM
Considering cells colored via conditional formatting Faraz A. Qureshi Microsoft Excel Programming 1 29th Jan 2010 11:58 AM
AUTO SUM ONLY SPECIFIC COLORED CELLS BY CONDITIONAL FORMATING abu abdullah........halsaeed85@gmail.com Microsoft Excel Programming 0 25th Nov 2009 09:45 AM
Conditional Formating - =SUM Colored Cells MS Microsoft Excel Discussion 5 25th Apr 2005 03:56 PM
Move colored formatted cells to another worksheet Maddoktor Microsoft Excel Discussion 1 16th Apr 2005 12:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:32 AM.