R
ranjan.khan
I have two sheets called Sheet1 and Sheet2 in WKBK
Each sheet has only one column (column A) with content.
I want to be able to compare both sheets to see if the content in
their respective Column A match. If there is a number in
Sheet2 that doesn't match the number in Sheet1, then I want to
highlight with yellow those cells in Sheet2.
For example here is the content of both workbooks:
Sheet1 Sheet2
23 66
15 23
66 19
24 24
16
15
Notice that Sheet2 has 2 more different numbers in its column. 16 and
19
What I want to do now is to highlight those 2 cells with yellow.
NOTE: Sheet1 will always be a subset of Sheet2.
Can you provide a VBA code for this?
Thanks.
Each sheet has only one column (column A) with content.
I want to be able to compare both sheets to see if the content in
their respective Column A match. If there is a number in
Sheet2 that doesn't match the number in Sheet1, then I want to
highlight with yellow those cells in Sheet2.
For example here is the content of both workbooks:
Sheet1 Sheet2
23 66
15 23
66 19
24 24
16
15
Notice that Sheet2 has 2 more different numbers in its column. 16 and
19
What I want to do now is to highlight those 2 cells with yellow.
NOTE: Sheet1 will always be a subset of Sheet2.
Can you provide a VBA code for this?
Thanks.