Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2017, 12:58 PM
dns_to dns_to is offline Merging multiple excel records in to a single word doc? Windows 10 Merging multiple excel records in to a single word doc? Office 2013
Novice
Merging multiple excel records in to a single word doc?
 
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 Merging multiple excel records in to a single word doc? Windows 7 64bit Merging multiple excel records in to a single word doc? 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.

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:
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
Reply



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 excel records in to a single word doc? Merging multiple fields within a Word letter from Excel LindsayV Mail Merge 2 04-08-2016 07:17 AM
Merging multiple excel records in to a single word doc? 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
Merging multiple excel records in to a single word doc? Copying Multiple tables from excel into a single word document dineshtgs Word Tables 1 04-07-2011 01:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:22 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