Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jason Wiley
 
Posts: n/a
Default Number of Conditional Formats

Can you have more than 3 conditional formats in Excel 2002? If so, how?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

You either do it with VBA event code, like so

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Range("A20")) Is Nothing Then
Select Case Target.Value
Case 1: Target.Interior.ColorIndex = 1
Case 2: Target.Interior.ColorIndex = 2
Case 3: Target.Interior.ColorIndex = 3
Case 4: Target.Interior.ColorIndex = 4
Case 5: Target.Interior.ColorIndex = 5
Case 6: Target.Interior.ColorIndex = 6
End Select
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.

or you could try http://www.xldynamic.com/sourc*e/xld....Download.html


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jason Wiley" <Jason wrote in message
...
Can you have more than 3 conditional formats in Excel 2002? If so, how?



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
Maximum Number of Cell Formats Jim Allen Excel Discussion (Misc queries) 4 April 19th 05 07:07 PM
How do I do conditional formatting on number formats not patterns. dave55 Excel Discussion (Misc queries) 2 March 22nd 05 02:21 AM
Conditional formatting row when cell value is an even number hhunt Excel Worksheet Functions 5 February 2nd 05 09:29 PM
Conditional Number Formats AMcCormick Excel Discussion (Misc queries) 1 January 30th 05 11:47 PM
Conditional Formats in Excel DaveB Excel Worksheet Functions 2 November 15th 04 07:36 AM


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