LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default count Interior.colorIndex

Thanks Tom.

It looks like I will have to try something else.

"Tom Ogilvy" wrote:

conditional formatting colors can not be directly determined using VBA. You
would have to test the underlying condition that would cause the color to
change. So you would have to loop through you range and determine how many
cells in the range meet the condition to be other than coloridex 0 and that
one only is actually colorindex 0. then you would have to remove
conditional formatting from that cell or change the colorindex for the
conditional formatting.

--
Regards,
Tom Ogivy

"gocats" wrote in message
...
Thanks Tom, but I dont' think you have not quite understood my problem.

All cells in a range (and qroup of ranges) are subject to conditional
formatting. However, if only one cell has Interior.colorIndex = 0, I

then
want that one cell to have Interior.colorIndex = 1.

In addition the second part is, if only one cell in a relative postion in
multiple ranges has Interior.colorIndex = 0, then I want that one cell

to
have Interior.colorIndex = 1.

"Tom Ogilvy" wrote:

Your subject says count conditional formatting, but your question

doesn't
seem to pertain to conditional formatting. Perhaps you could restate

your
question to give a clearer indication of what you are trying to do and

what
the actual conditions are.

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
ActiveCell.Interior.ColorIndex = 21

ActiveCell.Offset(0,3).Interior.colorIndex = 21

If you want a uniform color index

Selection.Interior.ColorIndex = 21

--
Regards,
Tom Ogilvy


"gocats" wrote in message
...
Part A) If only 1 cell in a range does has ColorIndex = 0, how can I
then
set
its interior color to something else?

Part B) If only cell in a relative postion in a multiple range has
ColorIndex = 0, how can I then set its interior color to something

else?










 
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
COUNT IF - Conditional Formatting KC Excel Discussion (Misc queries) 2 October 30th 09 04:38 PM
COUNT CELLS WITH CONDITIONAL FORMATTING PEGWINN Excel Worksheet Functions 6 September 22nd 07 06:03 PM
Count and Sum with Conditional Formatting Problem pmahajan Excel Worksheet Functions 1 December 14th 04 05:30 AM
EXCEL 97: Count Conditional Formatting? Tom Ogilvy Excel Programming 1 September 15th 04 05:45 PM
Count Conditional Formatting LD[_2_] Excel Programming 5 October 14th 03 10:51 PM


All times are GMT +1. The time now is 12:29 AM.

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"