This macro has me stumped.
I have a column of information in Workbook "A", Worksheet 1, Column "C" AND I have a column of information in Workbook "B", Worksheet 1, Column "D" which correspond with one another.
I would like to read-in the cell.Value For each cell in Range("C:C") of workbook A;
Compare to all of the cell.Values in Range("D:D") of Workbook B;
If a match is found, Copy the information in column J of the respective row of Workbook B;
Paste the information to column I of the respective row of workbook A;
I am most confused with the "compare" operation I am stating above. I know how to use a For Each loop to analyze all of the cells in a range of any given spreadsheet, but not how to compare with another For Each loop of another Worksheet. Is there a better way to accomplish this?
I am also confused with how to run the comparison between the Activesheets/loops, and not slow the program down too much.
I have a column of information in Workbook "A", Worksheet 1, Column "C" AND I have a column of information in Workbook "B", Worksheet 1, Column "D" which correspond with one another.
I would like to read-in the cell.Value For each cell in Range("C:C") of workbook A;
Compare to all of the cell.Values in Range("D:D") of Workbook B;
If a match is found, Copy the information in column J of the respective row of Workbook B;
Paste the information to column I of the respective row of workbook A;
I am most confused with the "compare" operation I am stating above. I know how to use a For Each loop to analyze all of the cells in a range of any given spreadsheet, but not how to compare with another For Each loop of another Worksheet. Is there a better way to accomplish this?
I am also confused with how to run the comparison between the Activesheets/loops, and not slow the program down too much.