Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conditional Font Color
How can I change the Font color based on a number?
I tried: For Each Cell In Selection On Error Resume Next If Cell.Value < 140 Then Cell.Interior.ColorIndex = 30 If Cell.Value < 140 Then Cell.Font.ColorIndex = 2 'other code for lower temperatures Next Thanks for any help! Jim |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conditional Font Color
seems to work here, you just have to have the cells selected before you
execute the code -- Gary "Jim Brass" wrote in message ... How can I change the Font color based on a number? I tried: For Each Cell In Selection On Error Resume Next If Cell.Value < 140 Then Cell.Interior.ColorIndex = 30 If Cell.Value < 140 Then Cell.Font.ColorIndex = 2 'other code for lower temperatures Next Thanks for any help! Jim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Conditional Format for font color using font color | Excel Worksheet Functions | |||
Conditional Format Font Color for more than 3 conditions | Excel Worksheet Functions | |||
Excel 2007 Conditional Font Color How To? | Excel Discussion (Misc queries) | |||
Change Font Color Based on Conditional Formatting | Excel Worksheet Functions | |||
Changing Font color based on font type or size | Excel Discussion (Misc queries) |