#1
|
|||
|
|||
Mail merge many to one
Hello everyone
I have excel file "Main Workbook" with some data and I need to export data according to the "City" field to word files .. A word file for each city And I have a word document "Template" which I need to copy and fill the fields according to the excel file ... I don't know about mail merge so I need a code that do that task .. if possible Or if it is easier to do the task using Mail Merge, please guide me as a novice to do that task Thanks advanced for great help Regards |
#2
|
||||
|
||||
You can use Word's Catalogue/Directory Mailmerge facility for this (the terminology depends on the Word version). To see how to do so with any mailmerge data source supported by Word, check out my Microsoft Word Catalogue/Directory Mailmerge Tutorial :
https://www.msofficeforums.com/mail-...-tutorial.html The tutorial covers everything from list creation to the insertion & calculation of values in multi-record tables in letters. Do read the tutorial before trying to use the mailmerge document included with it. The field coding for this is complex. However, since the tutorial document includes working field codes for all of its examples, most of the hard work has already been done for you - you should be able to do little more than copy/paste the relevant field codes into your own mailmerge main document, substitute/insert your own field names and adjust the formatting to get the results you desire. For some worked examples, see the attachments to the posts at: https://www.msofficeforums.com/mail-...html#post23345 https://www.msofficeforums.com/mail-...html#post30327 Another option would be to use a DATABASE field in a normal ‘letter’ mailmerge main document and a macro to drive the process. An example of this approach can be found at: Many to one email merge using tables - Microsoft Community The DATABASE field can even be used without recourse to a mailmerge. An example of such usage can be found at: https://www.msofficeforums.com/mail-...html#post67097 Alternatively, you may want to try one of the Many-to-One Mail Merge add-ins, from: Graham Mayor at Merge Many To One or Doug Robbins at Microsoft services
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
||||
|
||||
Cross-posted at: http://www.eileenslounge.com/viewtopic.php?f=30&t=27287
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
can this be done using tables instead of trying to align output with tabls
|
#5
|
||||
|
||||
If you had read the tutorial - or had even looked at the link for using a DATABASE field - you wouldn't be asking...
The advice in post #2 even says: That should give you a clue.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
choose to be pompous
I spent most of the afternoon looking thru the threads; but apparently i was not able to find what i was looking for - therein lies the post.
Note - if you choose to be pompous, please no response is necessary. I will keep looking for other persons who choose to be helpful |
#7
|
||||
|
||||
Quote:
If you want to be rude, kindly absent yourself from these forums...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#8
|
|||
|
|||
No good for me (very beginner)
Quote:
Anybody can find an actual working easy to follow if you're a beginner i would be very greatful if you could let me know. |
#9
|
||||
|
||||
Quote:
Only someone who hasn't bothered to read the tutorial and follow its instructions, or the link to the use of the DATABASE field for a real-world email example, or the many-to-one addins, could come to such an ill-informed conclusion. The post you quoted contains links to four different methods to group records for email merges. What more do you expect? Someone to do the work for you? Try actually using the material provided.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I mail merge records into table columns with more than one merge field? | tech123 | Mail Merge | 1 | 04-26-2017 07:13 PM |
Mail Merge fields merge incorrectly and won't fix. | marym | Mail Merge | 3 | 04-09-2016 05:17 AM |
Mail Merge is Deleting objects in my header and footer during the merge | bgranzow | Mail Merge | 9 | 06-05-2015 05:03 AM |
Mail merge how to link mail merge field value to a column heading | dsummers | Mail Merge | 1 | 05-08-2014 02:59 PM |
Saving INDV mail merges During the mail merge | sedain121 | Mail Merge | 2 | 10-04-2011 07:52 PM |