PC Review


Reply
Thread Tools Rate Thread

Conditional Formatting - Color row based on one cell value

 
 
=?Utf-8?B?TW9uaWNh?=
Guest
Posts: n/a
 
      6th Nov 2007
I need to color code a row (10 columns) based on the value in column a being
a specific job name or number (8 to choose from). Conditional formatting
only allowed 3 conditions and only worked on individual cells.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2VyYXJkVg==?=
Guest
Posts: n/a
 
      6th Nov 2007
For more than 3 formats I use somthing like:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Select Case Cells(1.1).Value
Case 1
Range("A1:J1").Interior.ColorIndex = 35
Range("A1:J1").Font.Bold = False
Case "Gerard"
Range("A1:J1").Interior.Color = RGB(255, 0, 0)
Range("A1:J1").Font.Bold = True
Case Else
Range("A1:J1").Interior.Color = RGB(255, 255, 255)
Range("A1:J1").Font.Bold = False
End Select

End Sub


--
Groeten / Greetings,

Gerard


"Monica" wrote:

> I need to color code a row (10 columns) based on the value in column a being
> a specific job name or number (8 to choose from). Conditional formatting
> only allowed 3 conditions and only worked on individual cells.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting using color based on another cell Michael Gwin Microsoft Excel Misc 2 19th Oct 2009 10:01 PM
Conditional Formatting based in cell color Emece Microsoft Excel Misc 2 20th Jan 2009 07:37 PM
Find cells w/background color based on conditional formatting Freida Microsoft Excel Worksheet Functions 2 17th Nov 2008 07:36 PM
Change Font Color Based on Conditional Formatting tj Microsoft Excel Worksheet Functions 8 11th Oct 2008 02:08 AM
Conditional Formatting Formula to Color Rows Based on Column Value =?Utf-8?B?U3RldmVD?= Microsoft Excel Programming 2 26th Jun 2006 06:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 AM.