Thread
:
How do I change the color of cells with a macro
View Single Post
#
2
Posted to microsoft.public.excel.misc
Don Guillett[_2_]
external usenet poster
Posts: 1,522
How do I change the color of cells with a macro
You don't give us much
select case range("a1").value
case<0:mc=6
case2:mc=3
case else
end select
rows(1).interior.colorindex=mc
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Mike DFR" wrote in message
...
I was using conditional formatting, but this only gives three options, I
need 5
I am looking for a simple piece of code which says
If cell A1 is not zero color the row green, for example.
I have tried With range, If Else and Case
I get the first color, then it will not change
Reply With Quote
Don Guillett[_2_]
View Public Profile
Find all posts by Don Guillett[_2_]