Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Cell color with formula or vb

Status
Not open for further replies.

unixisbest

Technical User
Jul 11, 2005
28
0
0
Hi All,
I need formula or vb to change specific cells color.
For example if value of a cell is beetween 3 and 6 ,color should be red and if value is bigger than 6 color should be green . I can make this easily by using conditional formating from excel menu but there are only three condition to apply. But i need more. So to me Vb should do this.

For instance something like this pseudocode:

If A1 contains 20.1 then
change color of A1 to green
endif

I'm using Excell 2003.

Thanks for any help.
 
Have a look at:
thread707-1108039
thread68-1103874


Gavin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top