Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Mail Merge

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-20-2017, 12:58 PM
dns_to dns_to is offline Windows 10 Office 2013
Novice
 
Join Date: Oct 2017
Posts: 1
dns_to is on a distinguished road
Default Merging multiple excel records in to a single word doc?

Hi,



I need to create a bunch of reports to display attributes about various programs. There a dozens of fields that I am trying to merge in to a single word document and am wondering if it is possible to set up a merge to read multiple rows of excel in to a single report. For example, here are 2 columns from the data table that I'm trying to merge in to a single word doc (please forgive the alignment, I tried to space out the columns but it appears to have been truncated in the post):

Program Name Year
Name 1 2000
Name 2 2006
Name 3 2012
Name 4 2017

In the single word document, I've set up text boxes and would like the info displayed as follows:

Name 1 Name 2 Name 3 Name 4
2000 2006 2012 2017

The issue is if I use the 'Program Name' and 'Year' column headings from the data table, it keeps returning the first record like this:

Name 1 Name 1 Name 1 Name 1
2000 2000 2000 2000

Is there a way to set up either the data table or the word document to read each row of data or do I need to transpose all of the data in to a single row with distinct column headings for each merge field? Any advice is much appreciated, thanks!

DS
Reply With Quote
  #2  
Old 10-20-2017, 01:22 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,191
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
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 at:
http://windowssecrets.com/forums/sho...merge-Tutorial
or:
http://www.gmayor.com/Zips/Catalogue%20Mailmerge.zip
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.

Depending on what you're trying to achieve, the field coding for this can be 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:
http://www.msofficeforums.com/mail-m...html#post23345
http://www.msofficeforums.com/mail-m...html#post30327
http://windowssecrets.com/forums/sho...l=1#post928391

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: http://answers.microsoft.com/en-us/o...1-1996c14dca5d
The DATABASE field can even be used without recourse to a mailmerge. An example of such usage can be found at: http://www.msofficeforums.com/mail-m...html#post67097

Alternatively, you may want to try one of the Many-to-One Mail Merge add-ins, from:
Graham Mayor at http://www.gmayor.com/ManyToOne.htm; or
Doug Robbins at http://bit.ly/1hduSCB
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting multiple data sets from a single Word Form into Excel Tom Saylor Word VBA 6 09-11-2016 05:22 AM
Merging multiple fields within a Word letter from Excel LindsayV Mail Merge 2 04-08-2016 07:17 AM
How to combine several records in a single letter in Word 2010 May Mail Merge 3 03-25-2015 03:36 AM
Merging multiple records into one document LaniKaye Mail Merge 3 10-28-2014 05:56 PM
Copying Multiple tables from excel into a single word document dineshtgs Word Tables 1 04-07-2011 01:27 AM


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


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft