Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2018, 03:56 AM
ged147 ged147 is offline Excel to Word Table via Mail Merge Windows 10 Excel to Word Table via Mail Merge Office 2016
Novice
Excel to Word Table via Mail Merge
 
Join Date: Nov 2018
Posts: 6
ged147 is on a distinguished road
Default Excel to Word Table via Mail Merge

I am trying to merge invoice data from an Excel file to an MS Word Letter template (see attached file).

I have 2 issues:-

1. I am unable to include multiple invoice lines for the same company in each letter As a workaround I have therefore created separate columns with unique column names eg invoice_id, invoice id 1-4, invoice date, invoice date 1-4 (see Excel file example).
2. If I stick to the method above how can I exclude blank lines from the word table where the company only has 1 invoice. I have created the table with 5 rows as a default.

Questions


Is there a simple method for including a multi row MS Word table in the letter?
OR
How can I suppress NULL rows in the Word table as part of the mail merge?

Thanks.

Ged
Attached Files
File Type: docx Test MM Template.docx (44.9 KB, 30 views)
File Type: xlsx Debt Recovery File.xlsx (9.7 KB, 27 views)
Reply With Quote
  #2  
Old 11-27-2018, 04:30 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Excel to Word Table via Mail Merge Windows 7 64bit Excel to Word Table via Mail Merge Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Hi and welcome
have you checked the stickies on this page ?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 11-27-2018, 04:52 AM
ged147 ged147 is offline Excel to Word Table via Mail Merge Windows 10 Excel to Word Table via Mail Merge Office 2016
Novice
Excel to Word Table via Mail Merge
 
Join Date: Nov 2018
Posts: 6
ged147 is on a distinguished road
Default

Thanks - I've seen some of them posted in other places but I'll work through them all
Reply With Quote
  #4  
Old 11-27-2018, 11:23 PM
macropod's Avatar
macropod macropod is offline Excel to Word Table via Mail Merge Windows 7 64bit Excel to Word Table via Mail Merge Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Specifically: 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 outline of this approach can be found at: http://answers.microsoft.com/en-us/o...1-1996c14dca5d
Conversely, if you're using a relational database or, Excel workbook with a separate table with just a single instance of each of the grouping criteria, a DATABASE field in a normal ‘letter’ mailmerge main document could be used without the need for a macro. An outline of this approach can be found at:
https://answers.microsoft.com/en-us/...f-8642e46fa103
For a working example, see:
https://www.msofficeforums.com/mail-...-multiple.html

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
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 11-28-2018, 02:52 AM
ged147 ged147 is offline Excel to Word Table via Mail Merge Windows 10 Excel to Word Table via Mail Merge Office 2016
Novice
Excel to Word Table via Mail Merge
 
Join Date: Nov 2018
Posts: 6
ged147 is on a distinguished road
Default

Many thanks Paul
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Update & Unlink Specific Merge Field in Word Doc from Mail Merge - Excel VBA RMerckling Mail Merge 16 05-17-2018 05:19 PM
Creating a table in one document of WORD from EXCEL with Mail Merge Joseph.Comerford@bentley. Mail Merge 1 04-18-2015 01:19 AM
Excel to Word Table via Mail Merge Merge From Excel With Table in Word - Next Record If Excel Column Same? misscrf Mail Merge 2 10-15-2014 11:51 PM
Mail merge table from Excel to Word krezumica Mail Merge 2 03-06-2014 10:26 PM
Insert formatted table into word (mail merge) manojbmsce Mail Merge 0 09-25-2008 02:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:31 AM.


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