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

Is there a way to have more than 3 formulas for
conditional formatting? If you have a solution can you
please post in this forum, I dont have access to most
sites from work. :-(

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Conditional Formatting, more than three?

you could write some vba code to test the conditions you
are looking for. Something like following may work for you:

Private Sub Worksheet_SelectionChange(ByVal Target As
Range)
With ActiveCell
Select Case .Value

Case "david"
With .Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
.Font.ColorIndex = 2

Case "john"

With .Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
.Font.ColorIndex = 2

Case "steve"

With .Interior
.ColorIndex = 5
.Pattern = xlSolid
End With
.Font.ColorIndex = 2
End Select
End With
End Sub

I have only shown three conditions but you should be able
to add more.

Hope helpful

-----Original Message-----
Is there a way to have more than 3 formulas for
conditional formatting? If you have a solution can you
please post in this forum, I dont have access to most
sites from work. :-(

Thanks,
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Conditional Formatting, more than three?

hi,
as a built in function, i am afraid you may be stuck.
you might try these sites(maybe) for more help

http://www.contextures.com/xlCondFormat01.html
http://www.mvps.org/dmcritchie/excel/condfmt.html

if not then you may be stuck with writing code using
select case maybe.

-----Original Message-----
Is there a way to have more than 3 formulas for
conditional formatting? If you have a solution can you
please post in this forum, I dont have access to most
sites from work. :-(

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
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 based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 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 10:10 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"