WatfordKev
Board Regular
- Joined
- Mar 30, 2011
- Messages
- 78
I want to do the following:
A2 = 5
A3 = 10
If I enter a value of 4 into A1, then cell A4 = "red"
If I enter a value of 7 into A1, then cell A4 = "amber"
If I enter a value of 11 into A1, then cell A4 = "green"
The trick is, I want to to this in code, in a macro, and want this to happen as soon as I put the value in i.e. "on the fly". Is this possible?
And once I have the code, how do I 'attach' it to the workbook? Thanks!
- Update a cell (number).
- Then compare against 2 others. If the input value is:
- lower than or the first comparator, then a new cell = "red".
- equal to or between the comparators, then a new cell = "amber".
- above the second comparator, then the new cell = "green".
A2 = 5
A3 = 10
If I enter a value of 4 into A1, then cell A4 = "red"
If I enter a value of 7 into A1, then cell A4 = "amber"
If I enter a value of 11 into A1, then cell A4 = "green"
The trick is, I want to to this in code, in a macro, and want this to happen as soon as I put the value in i.e. "on the fly". Is this possible?
And once I have the code, how do I 'attach' it to the workbook? Thanks!