Hi,
Sorry but the idea IS reinventing the wheel. It's just that you don't appear to realise the wheel yet exists.
The fact that you even mention VBA sort of implies that you have more than a basic working knowledge of Excel, else why would you even know VBA exists or even what it may do for you?
So I'm somewhat surprised that you don't seem to have considered conditional formatting. Do you know what it is?
Since we're into descriptive metaphors the first port of call in a storm isn't adjacent to a rocky submerged reef.
To answer your Q. Use a Conditional format in A1 using the'Formula Is' option. e.g.
and set the format of A1 to whatever you want should A2 take the value '1'.
You don't say what version of Excel you have (please add that to your profile since it helps us respond to questions), but if you have Excel 2007 or later you can have many conditional formats in a cell. With Excel 2003 you only have three available to you.
Bookmarks