If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
mail merge from 2 separeted tables?
Hi! I wanted to ask if it is possible to have 2 different
tables where I get my data in the same document!I use mail merge all the time and I get my data always from 1 table (usually Excel), but this time I want to use 2 different ecxel sheets?? So is it possible to have 2 different data sources in 1 mail merge document?? Thanks in advance |
#2
|
|||
|
|||
So is it possible to have 2 different data
sources in 1 mail merge document? No, there can only be one "Data Source". It may be possible to work around this but it depends on what you want to do and what data you have in your spreadsheets. If, for example, the columns in your two sheets are the same and you just want to treat the data as if the second sheet's data followed the first, then a. the simplest approach is just to combine the contents of the two sheets into a new Excel sheet, and use that as the data source. You could do that manually or probably using some Excel VBA. b. it is possible to use Word VBA'sOpenDataSource method, the ODBC connection method, and an SQL UNION query to get the data from both sheets. Personally, I'd avoid attempting that unless I really had to. -- Peter Jamieson "gioulil" wrote in message ... Hi! I wanted to ask if it is possible to have 2 different tables where I get my data in the same document!I use mail merge all the time and I get my data always from 1 table (usually Excel), but this time I want to use 2 different ecxel sheets?? So is it possible to have 2 different data sources in 1 mail merge document?? Thanks in advance |
#3
|
|||
|
|||
Thanks a lot!
I think the best solution is one new spraedsheet!!! Thanks again -----Original Message----- So is it possible to have 2 different data sources in 1 mail merge document? No, there can only be one "Data Source". It may be possible to work around this but it depends on what you want to do and what data you have in your spreadsheets. If, for example, the columns in your two sheets are the same and you just want to treat the data as if the second sheet's data followed the first, then a. the simplest approach is just to combine the contents of the two sheets into a new Excel sheet, and use that as the data source. You could do that manually or probably using some Excel VBA. b. it is possible to use Word VBA'sOpenDataSource method, the ODBC connection method, and an SQL UNION query to get the data from both sheets. Personally, I'd avoid attempting that unless I really had to. -- Peter Jamieson "gioulil" wrote in message ... Hi! I wanted to ask if it is possible to have 2 different tables where I get my data in the same document!I use merge all the time and I get my data always from 1 table (usually Excel), but this time I want to use 2 different ecxel sheets?? So is it possible to have 2 different data sources in 1 mail merge document?? Thanks in advance . |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Secured DB for a Word Mail Merge problem | Tony_VBACoder | General Discussion | 1 | August 30th, 2004 10:11 PM |
Secured DB for a Word Mail Merge problem | Tony_VBACoder | Mailmerge | 0 | August 30th, 2004 07:32 PM |
Word-Excel 2000 Mail Merge Failure | Jim | Mailmerge | 1 | August 12th, 2004 02:43 PM |
Mail Merge Recipient Window | Sharon | Mailmerge | 5 | June 9th, 2004 04:09 PM |
Break up Mail Merge into separate documents | Mailmerge | 6 | May 15th, 2004 06:24 AM |