Don't ever copy paste code unless you know what it does...
It's telling you that you used a "For" loop without telling it where the end of the loop is.
What are you trying to do here anyway? Looking closer it seems like all you're doing is changing the color based on a value in a cell.
Any reason you're not using conditional formatting?