Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
trouble with conditional formatting
I am trying to conditionally format any cell over the number 20. But when I
apply my code I get text included. I can't seem to figure out how to eliminat the formatting from the cells in the range that contain text. HELP!!! ================================================= For Each cell In xlRng '.Range("A4:A500") If cell.Value 20 And cell.Value Then cell.Interior.ColorIndex = 3 Next |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
trouble with conditional formatting
For Each cell In Range("A4:A500")
If IsNumeric(cell.Value) And cell.Value 20 Then _ cell.Interior.ColorIndex = 3 Next -- HTH RP (remove nothere from the email address if mailing direct) "tilu" wrote in message ... I am trying to conditionally format any cell over the number 20. But when I apply my code I get text included. I can't seem to figure out how to eliminat the formatting from the cells in the range that contain text. HELP!!! ================================================= For Each cell In xlRng '.Range("A4:A500") If cell.Value 20 And cell.Value Then cell.Interior.ColorIndex = 3 Next |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
trouble with conditional formatting
If cell.Value 20 And IsNumeric(cell.Value) Then cell.Interior.ColorIndex = 3
"tilu" wrote: I am trying to conditionally format any cell over the number 20. But when I apply my code I get text included. I can't seem to figure out how to eliminat the formatting from the cells in the range that contain text. HELP!!! ================================================= For Each cell In xlRng '.Range("A4:A500") If cell.Value 20 And cell.Value Then cell.Interior.ColorIndex = 3 Next |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Trouble w/ conditional formatting and dates | Excel Discussion (Misc queries) | |||
2003: Having trouble with conditional formatting with custom user function (Repost) | Excel Worksheet Functions | |||
Trouble Finding Duplicate Values with Conditional Formatting | Excel Discussion (Misc queries) | |||
Trouble formatting | Excel Worksheet Functions | |||
Trouble with a conditional statement | New Users to Excel |