I need to combine rows from two Excel worksheets into one long row, based on an ID column in each of the worksheets. Effectively I want to perform the equivilent of a SQL JOIN on two worksheets to produce a combined worksheet.
I can get a Range object for a row in the first worksheet, and then use the ID column to get a Range object for the corresponding row in the second worksheet. Now I need to combine them.
I am aware of Merge and Union VBA methods, however I don't think they do what I need.
How do I combine these two range objects?
eg: worksheet 1 row: a, b, c worksheet 2 row: d, e, f
combined row: a, b, c, d, e, f