saltedhoneylatte
New Member
- Joined
- Jul 29, 2022
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
I am looking for a VBA code/macros that does the following...
Compare the data in a cell from Column A from Sheet 1 to the data in a cell in Column B in Sheet 2. If the data values are equal, then I want to take the values in the row from Column D in Sheet 1 and past them into the row in Column K in Sheet 2, then move to the next row in sheet 1 to compare. Sheet 1 and Sheet 2 rows may not align.
Column B in sheet 2 has all the values that could possibly exist in Column A in sheet 1.
I've included a table to try to help visualize what I am trying to do..
Sheet 1
Sheet Two
Compare the data in a cell from Column A from Sheet 1 to the data in a cell in Column B in Sheet 2. If the data values are equal, then I want to take the values in the row from Column D in Sheet 1 and past them into the row in Column K in Sheet 2, then move to the next row in sheet 1 to compare. Sheet 1 and Sheet 2 rows may not align.
Column B in sheet 2 has all the values that could possibly exist in Column A in sheet 1.
I've included a table to try to help visualize what I am trying to do..
Sheet 1
A | D | ||||||||||||
data to compare | cell to copy | ||||||||||||
Sheet Two
B | K | ||||||||||||
data to compare | cell to paste | ||||||||||||