More than 3 conditional formats

Ice223

Active Member
Joined
Jun 18, 2004
Messages
334
Is there a way to get more than 3 conditional formats without using VB?

I've done a search, but could only find a few macro scripts and I am kind of clueless about VB.

-Ice
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi hedgie:

Please provide some sample data with a little background on what this is about and what you are trying to accomplish. Please provide the requested information and then let us take it from there!
 
Upvote 0
Hi Hedgie, as Yogi said you really need this type of code to be tailor made to your situation, but based on what you say I think this should be a good start. As you have drop down boxes then this is someone physically typing something in the cell (or choosing selection) as opposed to a formula so this code uses the Change event.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range, Rng As Range

Set Rng = Intersect(Target, [A:A])
If Rng Is Nothing Then Exit Sub
For Each c In Rng
    If IsError(c) Then
        c.EntireRow.Interior.ColorIndex = xlNone
    Else
        Select Case c
        Case "Open": c.EntireRow.Interior.Color = vbBlue
        Case "In Progress": c.EntireRow.Interior.Color = vbYellow
        Case "More info needed": c.EntireRow.Interior.Color = vbGreen
        Case "Complete": c.EntireRow.Interior.Color = vbRed
        Case Else: c.EntireRow.Interior.ColorIndex = xlNone
        End Select
    End If
Next c
Set Rng = Nothing
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,399
Members
449,447
Latest member
M V Arun

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top