
11-12-2003, 07:43 AM
|
|
Newcomer
|
|
Join Date: Nov 2003
Posts: 3
|
|
Merge data from two separate Excel files into a flexgrid.
|
Dear very nice VB experts!
I would like to merge data from two separate workbooks into a flexgrid.
The two books contains data in a database structure, that is one line with fild names, and then the posts in sequence under it. One of the fields are named the same, and is the "key" to what should be merged. All other fields should be put into the line in the flexgrid.
I understand, or guess that this is somewhat a tricky task, but I appriciate all hints I can get.
Example of what I mean:
Book 1:
Name ID Age
Seb 1 25
Kalle 2 30
Jenny 3 6
Book 2:
ID City
1 Gothenburg
2 New York
FlexGrid:
Name ID Age City
Seb 1 25 Gothenburg
Kalle 2 30 New York
Jenny 3 6
My first thought was to treat the two books as a relationship database, and to acces it with some nice sql statement. Is this possible?
Best wishes, Sebastian.
|
|