I need to combine rows from two Excel tables into one long row based on the identifier column in each of the sheets. In fact, I want to perform SQL JOIN equivalence on two sheets to create a combined worksheet.
I can get the Range object for the row in the first sheet, and then use the ID column to get the Range object for the corresponding row in the second sheet. Now I need to combine them.
I know the Merge and Union VBA methods, but I don’t think they do what I need.
How to combine these two range objects?
for example: sheet 1 line: a, b, c sheet 2 lines: d, e, f
combo string: a, b, c, d, e, f
source
share