forumfinder
New Member
- Joined
- Dec 9, 2011
- Messages
- 3
Hi All,
I am developing a macro which select certain rows from table and highlight them based on the result. (Green for Okay and Red for Wrong).
The criteria is if lets say "A1" has word "Happy" and "A2" has word "Happy go lucky" then after running macro, "A1" and "A2" gets highlighted by green. Vice versa, if "A2" doesn't have "Happy" then "A1" and "A2" gets highlighted by Red.
e.g.: If Range("A2") contains val(Range("A1")) then
Range("A1:A2").highlight(Green)
something like this....
Please advise me on this.....
I am developing a macro which select certain rows from table and highlight them based on the result. (Green for Okay and Red for Wrong).
The criteria is if lets say "A1" has word "Happy" and "A2" has word "Happy go lucky" then after running macro, "A1" and "A2" gets highlighted by green. Vice versa, if "A2" doesn't have "Happy" then "A1" and "A2" gets highlighted by Red.
e.g.: If Range("A2") contains val(Range("A1")) then
Range("A1:A2").highlight(Green)
something like this....
Please advise me on this.....