View Single Post
 
Old 04-11-2012, 10:12 PM
Catalin.B Catalin.B is offline Windows Vista Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

You do not need a macro to do that, simply use conditional formatting.
Select the entire range of cells that you want to apply this format, then go to home tab-->conditional formatting-->New Rule-->Use a formula to determine which cells to format, then in formula field enter this( assuming that your range starts from A8, and in column A is your data validation list):
=$A8="Started" , and click on format button next to preview to pick a colour to fill the cells.
Create a second rule for the other colour, determine the cells to apply the rule with the formula :
=$A8="Completed"
And so on for other conditions...
Reply With Quote