ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Conditional Formatting VBA Multiple Numeric Ranges (https://www.excelbanter.com/excel-programming/440466-conditional-formatting-vba-multiple-numeric-ranges.html)

stevedemo77

Conditional Formatting VBA Multiple Numeric Ranges
 
I have a worksheet with hundreds of rows of data in columns A through AV, and
want to have the color of columns A through J ONLY change for each row based
on a numeric value in column J. For example, if the value in column J <0,
color = red, if between 1 and 30 = yellow, if between 31 and 45 = blue, if
between 46 and 60 = green, if between 61 and 90 = purple, if 120 =
gray...and so on. I'm using Excel 2003 unfortunately so am limited to 3
conditional formats and need to use VBA. Any suggestions on how to code this?
Thanks!

Bernard Liengme[_2_]

Conditional Formatting VBA Multiple Numeric Ranges
 
Have a look at
http://www.ozgrid.com/VBA/excel-cond...ting-limit.htm
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"stevedemo77" wrote in message
...
I have a worksheet with hundreds of rows of data in columns A through AV,
and
want to have the color of columns A through J ONLY change for each row
based
on a numeric value in column J. For example, if the value in column J <0,
color = red, if between 1 and 30 = yellow, if between 31 and 45 = blue, if
between 46 and 60 = green, if between 61 and 90 = purple, if 120 =
gray...and so on. I'm using Excel 2003 unfortunately so am limited to 3
conditional formats and need to use VBA. Any suggestions on how to code
this?
Thanks!




All times are GMT +1. The time now is 11:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com