Add the second line, after the first (or copy the code below and replace):
(a) Cells with a dot before it and nothing else belong to this workbook (the workbook where the code lives).
That is based on the statement: With ThisWorkbook.Worksheets(1)
(b) Cells with ws before it belong to the workbook which was opened.
That is based on the statement: Set ws = wb2.Worksheets(1)
(c) nRow is the loop counter for this workbook.
(d) rgCell.Row is the row of the item found in the opened workbook.
Once you know these four facts, all you need to do is add "G" to one and "C" to the other.
I added a few notes in the code to help you understand what is going on.
Bookmarks