Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Conditional Formatting

Hi,

Conditional Formatting only allows 3 conditions, but I need 5,
so that in F Column, if I insert:

Won (cell turns green)
Proposed (cell turns amber)
Lost (cell turns red)

etc.etc.

I think this involves Worksheet_Change
and Target

Any help appreciated
Thanks





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Conditional Formatting

Try this:

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Range("F:F")) Is Nothing Then
With Target
Select Case .Value
Case Is = "Won"
.Interior.ColorIndex = 4
Case Is = "Proposed"
.Interior.ColorIndex = 44
Case Is = "Lost"
.Interior.ColorIndex = 3
Case is = .......
.interior.colorIndex= ???
End Select
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub

HTH

"teresa" wrote:

Hi,

Conditional Formatting only allows 3 conditions, but I need 5,
so that in F Column, if I insert:

Won (cell turns green)
Proposed (cell turns amber)
Lost (cell turns red)

etc.etc.

I think this involves Worksheet_Change
and Target

Any help appreciated
Thanks





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Conditional Formatting

There is a download that you can get which allows you to do up to 30
conditional formats...

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

Give it a look.

"teresa" wrote:

Hi,

Conditional Formatting only allows 3 conditions, but I need 5,
so that in F Column, if I insert:

Won (cell turns green)
Proposed (cell turns amber)
Lost (cell turns red)

etc.etc.

I think this involves Worksheet_Change
and Target

Any help appreciated
Thanks





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
Conditional formatting--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Formatting Conditional Formatting Icon Sets The Rook[_2_] Excel Discussion (Misc queries) 3 March 7th 09 08:48 PM
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 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:19 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"