Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Fri, 23 Jun 2006 05:21:11 -0500, CarolineHedges wrote:
I would like to know how I can get the colour of a row to automatically change when a certain value is input, or any value at all into that column. Private Sub Worksheet_Change(ByVal Target As Range) If Target.Count = 1 Then If Target.Column = 1 Then Select Case Target.Value Case "g" Target.EntireRow.Interior.Color = vbGreen Case "b" Target.EntireRow.Interior.Color = vbBlue Case "r" Target.EntireRow.Interior.Color = vbRed Case Else Target.EntireRow.Interior.Color = vbWhite End Select End If End If End Sub -- PL |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I get cells to automaticly change colour on data input? | Excel Worksheet Functions | |||
change a cell background colour to my own RGB colour requirements | Excel Discussion (Misc queries) | |||
Background Colour Depending On Input | Excel Discussion (Misc queries) | |||
Conditional formatting - different cell colour for each year following from user input date? | Excel Programming | |||
Changing a row colour automatically based on a cell input. | Excel Programming |