Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Conditional Formatting - Color row based on one cell value

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Conditional Formatting - Color row based on one cell value

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
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 using color based on another cell Michael Gwin Excel Discussion (Misc queries) 2 October 19th 09 10:01 PM
Conditional Formatting based in cell color Emece Excel Discussion (Misc queries) 3 January 20th 09 07:46 PM
Conditional Formatting (Excel 2007) Format Row Color Based on X Alice M. Excel Discussion (Misc queries) 4 November 25th 08 01:24 AM
Find cells w/background color based on conditional formatting Freida Excel Worksheet Functions 2 November 17th 08 07:36 PM
Change Font Color Based on Conditional Formatting tj Excel Worksheet Functions 8 October 11th 08 02:08 AM


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