Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do i change the color of a cell based on the value of anthor c
I am desiging a data shee and i want to changes the color of a cell based on
the valuse of anthor cell. ex. if "cell m34" is equal to 0 then "cell p21" is white, if cell m34 less than 1548, then "cell P21" is yellow Can this be done? If so, please help me out. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do i change the color of a cell based on the value of anthor c
Look at
http://www.cpearson.com/excel/colors.htm I would advise using the The Case Statement ------------- value = cell m34 Select Case Value Case 0 cell21.Interior.ColorIndex = 3 'red 'change Colourindex to get different coulrs Case 1 to 10 Case Else End select "Dennis" wrote in message ... I am desiging a data shee and i want to changes the color of a cell based on the valuse of anthor cell. ex. if "cell m34" is equal to 0 then "cell p21" is white, if cell m34 less than 1548, then "cell P21" is yellow Can this be done? If so, please help me out. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change tab color based on current color of a cell | Excel Discussion (Misc queries) | |||
Can a cell change color based on the value of another? | Excel Discussion (Misc queries) | |||
Can you change the color of one cell based on the color of another | Excel Discussion (Misc queries) | |||
Excel: Syntax to change cell color based on color of another cell | Excel Worksheet Functions | |||
Change tab color based on a cell value | Excel Discussion (Misc queries) |