Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default More than 3 rules of conditional formatting

Is there any ways to have more than 3 formats with conditional formatting?
I've been thinking about styles, but i dont know if i can change a style of
a cell with formulas.
Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default More than 3 rules of conditional formatting

Hi,

I'm not sure about styles but you can do it using the worksheet_change
event. Right click the sheet tab and view code and paste this in. Add as many
conditions as you like:-

Private Sub Worksheet_Change(ByVal Target As Range)
Const myRange As String = "A1:B20"
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(myRange)) Is Nothing Then
With Target
Select Case .Value
Case Is Range("F1"): .Interior.ColorIndex = 46 'Orange
Case 2: .Interior.ColorIndex = 3 'Red
Case 3: .Interior.ColorIndex = 6 'Yellow
Case 4: .Interior.ColorIndex = 10 'Green
End Select
End With
End If
Application.EnableEvents = True
End Sub

"Mats K" wrote:

Is there any ways to have more than 3 formats with conditional formatting?
I've been thinking about styles, but i dont know if i can change a style of
a cell with formulas.
Any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default More than 3 rules of conditional formatting

Hi Mats,

This link to Bob Phillips's site might interest you

http://www.xldynamic.com/source/xld.....Download.html

HTH
Martin


"Mats K" wrote in message
...
Is there any ways to have more than 3 formats with conditional formatting?
I've been thinking about styles, but i dont know if i can change a style
of
a cell with formulas.
Any suggestions?



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
Exporting conditional formatting rules Chadwill Excel Discussion (Misc queries) 16 April 30th 23 03:43 AM
Combine Conditional Formatting Rules formulae Fred Excel Discussion (Misc queries) 3 March 16th 07 02:27 AM
how do I set up a validation rules with two data rules Trudy Excel Worksheet Functions 1 October 16th 06 05:42 AM
I need 5 conditional formatting rules-excel only allows 3 das1997 Excel Discussion (Misc queries) 4 November 12th 05 02:33 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


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