imagoodwon
Technical User
How do I structure VBA code to do the following:
I have 2 workbooks, bk1 & bk2
From bk2 Col A, look at bk1 col A
If there's a match on Col A, compare the range at bk 2 ActiveCell.Offset(0, 1).Resize(1, 5) and compare it to the corresponding range on bk1
If there's NO MATCH on Col A, then copy the entire row to Col A bk1
bk1 gets all the changes and updates.
At the end, show a MsgBox with how many matches were made & how many rows were copied.
Eventually, I will create a new workbook, 2 Sheets to record the new additions ( Sheet1) and the changes (Sheet2)
I have 2 workbooks, bk1 & bk2
From bk2 Col A, look at bk1 col A
If there's a match on Col A, compare the range at bk 2 ActiveCell.Offset(0, 1).Resize(1, 5) and compare it to the corresponding range on bk1
If there's NO MATCH on Col A, then copy the entire row to Col A bk1
bk1 gets all the changes and updates.
At the end, show a MsgBox with how many matches were made & how many rows were copied.
Eventually, I will create a new workbook, 2 Sheets to record the new additions ( Sheet1) and the changes (Sheet2)