Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-19-2017, 09:45 AM
YasserKhalil YasserKhalil is offline Mail merge many to one Windows 7 32bit Mail merge many to one Office 2013
Novice
Mail merge many to one
 
Join Date: Jul 2015
Posts: 1
YasserKhalil is on a distinguished road
Default 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
Attached Files
File Type: zip Sample Files.zip (21.8 KB, 27 views)
Reply With Quote
  #2  
Old 07-19-2017, 03:23 PM
macropod's Avatar
macropod macropod is offline Mail merge many to one Windows 7 64bit Mail merge many to one Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 07-23-2017, 04:19 PM
macropod's Avatar
macropod macropod is offline Mail merge many to one Windows 7 64bit Mail merge many to one Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #4  
Old 07-31-2017, 02:39 PM
aidudley aidudley is offline Mail merge many to one Windows 7 64bit Mail merge many to one Office 2016
Novice
 
Join Date: Jul 2017
Posts: 2
aidudley is on a distinguished road
Default

can this be done using tables instead of trying to align output with tabls
Reply With Quote
  #5  
Old 07-31-2017, 04:20 PM
macropod's Avatar
macropod macropod is offline Mail merge many to one Windows 7 64bit Mail merge many to one Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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:
Quote:
Originally Posted by macropod View Post
The tutorial covers everything from list creation to the insertion & calculation of values in multi-record tables in letters.
That should give you a clue.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 07-31-2017, 05:31 PM
aidudley aidudley is offline Mail merge many to one Windows 7 64bit Mail merge many to one Office 2016
Novice
 
Join Date: Jul 2017
Posts: 2
aidudley is on a distinguished road
Default 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
Reply With Quote
  #7  
Old 07-31-2017, 06:22 PM
macropod's Avatar
macropod macropod is offline Mail merge many to one Windows 7 64bit Mail merge many to one Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by aidudley View Post
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.
If you want an answer to your question, do some reading. The material in the links provided answers your question in full.
Quote:
Originally Posted by aidudley View Post
Note - if you choose to be pompous, please no response is necessary.
If you want to be rude, kindly absent yourself from these forums...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #8  
Old 11-21-2017, 04:38 AM
Mike_CS Mike_CS is offline Mail merge many to one Windows 8 Mail merge many to one Office 2013
Novice
 
Join Date: Nov 2017
Posts: 2
Mike_CS is on a distinguished road
Default No good for me (very beginner)

Quote:
Originally Posted by macropod View Post
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....
Is this just the blanket reply to this query? Have looked on many sites and this answer is on all of them and then its solved. I'm pretty sure email merge doesn't work with this.

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.
Reply With Quote
  #9  
Old 11-21-2017, 05:35 AM
macropod's Avatar
macropod macropod is offline Mail merge many to one Windows 7 64bit Mail merge many to one Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Mike_CS View Post
Is this just the blanket reply to this query? Have looked on many sites and this answer is on all of them and then its solved.
It gets marked as the answer to the questions asked so often because it's such a comprehensive reply.
Quote:
Originally Posted by Mike_CS View Post
I'm pretty sure email merge doesn't work with this.
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]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail merge many to one 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 many to one Mail Merge fields merge incorrectly and won't fix. marym Mail Merge 3 04-09-2016 05:17 AM
Mail merge many to one 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
Mail merge many to one Saving INDV mail merges During the mail merge sedain121 Mail Merge 2 10-04-2011 07:52 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft