LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Increase number of conditional format arguments

One possible way, assuming the values are calculated:

Private Sub Worksheet_Calculate()
Dim rCell As Range
For Each rCell In Range("A1:A10")
With rCell
Select Case .Value
Case Is = 1
.Interior.ColorIndex = 3
Case Is = 2
.Interior.ColorIndex = 5
Case Is = 3
.Interior.ColorIndex = 7
Case Is = 4
.Interior.ColorIndex = 9
Case Else
.Interior.ColorIndex = xlColorIndexNone
End Select
End With
Next rCell
End Sub


In article ,
Alison wrote:

Thanks, but I don't see know what code to use?

"JE McGimpsey" wrote:

One way is to upgrade to XL2007.

otherwise, you will probably have to use worksheet event code. Perhaps
something like this (put it in your worksheet code module: Right-click
on the worksheet tab and choose View Code):

There are tons of posts of ways to use event code in the archives:

http://groups.google.com/advanced_group_search?

(in addition to your search terms, enter *excel* (with asterisks) in the
group box)


In article ,
Alison wrote:

Is there any way to increase from "3" the number of conditional format
arguments allowed?

I have 4 arguments and the cells this applies to will contain one of the
4
arguments or be blank. If the cell is blank, no conditional formatting
should be applied. For each of the 4 arguments, a different cell pattern
colour would be applied.

Thanks!


 
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 format of number? -- show decimal ONLY IF not 0 projectx633 Excel Discussion (Misc queries) 1 January 9th 07 02:38 PM
How to create a conditional format that changes the number format tmbo Excel Discussion (Misc queries) 1 August 23rd 06 06:20 AM
conditional sum - number of arguments problem LesLdh Excel Worksheet Functions 4 October 19th 05 01:48 PM
Excel formulas increase from 7 arguments to 12 or more lwilli11 Excel Discussion (Misc queries) 1 September 26th 05 04:36 PM
Conditional format of minimum number MaggieMagill Excel Worksheet Functions 6 September 25th 05 11:36 PM


All times are GMT +1. The time now is 09:03 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"