zraj07
Board Regular
- Joined
- Jun 15, 2006
- Messages
- 80
Column A has list of numbers. For simplicity, say they are 3, 15, 12, 16, 8.
Column B has a list of numbers. Say they are 1, 18, 27, 15, 8, 12, 16, 19, 34, 45...
Without changing the sort orders of these numbers, I am trying to write some code that will first consider Cell A1 (value of 3) , and will go search every value in Column B looking for a 3. If it finds any with a value of 3, it sets the interior.color to red.
Then, it would move to A2 (value of 15) and look for that in Column B, color them red if found, and move on to A3 (value of 12) and color them red.
I can't figure out how to use the cells method to keep track of where I am in Column A while searching Column B.
Any suggestions? Maybe I need to use some sort of Range operation?
Column B has a list of numbers. Say they are 1, 18, 27, 15, 8, 12, 16, 19, 34, 45...
Without changing the sort orders of these numbers, I am trying to write some code that will first consider Cell A1 (value of 3) , and will go search every value in Column B looking for a 3. If it finds any with a value of 3, it sets the interior.color to red.
Then, it would move to A2 (value of 15) and look for that in Column B, color them red if found, and move on to A3 (value of 12) and color them red.
I can't figure out how to use the cells method to keep track of where I am in Column A while searching Column B.
Any suggestions? Maybe I need to use some sort of Range operation?