Hi
I hope you will help me with a code. It is really not that complicated I think, although not so easy to explain, but I will try.
I have two workbooks. One source and one target. Both workbooks are similar but with different information.
I want to copy information from Source workbook to Target workbook based on some criteria.
Both workbooks will be open when doing this, so no need to add path to the location on disk.
I have uploaded sample workbooks. The "Target example" sheet in Target workbook show how it will look like when the operation is done.
The criteria is that if a value in column D in Target workbook matches a value in column D in Source workbook.
If value in Column D match then:
In the same row as the match in Source workbook, check if there is any value in Column F.
If YES:
Operation 1:
Copy the cell value to Column F in Target workbook in the row where the matching number
is in that workbook.
Operation 2:
Copy the cell value from Column E in Source workbook and Paste (overwrite) it in the matching cell in Target workbook.
Operation 3:
Add this text to Column G in Target Workbook: "Copied from Source workbook"
If NO:
Add this text to Column G in Target workbook: "Found in Source workbook, but no Remarks"
If no match in Column D, add this text to column G in Target workbook: "Not found in Source workbook.
Bookmarks