#1
|
|||
|
|||
Mailmerge invoicing multiple items
Hi,
I am looking to create invoices with a mailmerge from an excel list. There are multiple line items to be invoiced for one Fund. I have tried adapting the code in this thread: https://www.msofficeforums.com/mail-...nt-dollar.html with {QUOTE{IF{MERGESEQ}= 1 {SET Key ""}} "{IF{QUOTE{MERGEFIELD FirstOrganization}}<> {Key} "{IF{MERGESEQ}> 1 {QUOTE 12}}{MERGEFIELD FirstOrganization \f " "}{SET Key {QUOTE{MERGEFIELD FirstOrganization}} Date "} {MERGEFIELD Item1} "} But I get this as a result: Organisation Organisation Item1 (1 organisation has many items, and I want the invoice to show Organisation with list of Items). Help is greatly appreciated!! Thank you. |
#2
|
||||
|
||||
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
Quote:
Thank you |
#4
|
||||
|
||||
The fact you're using a laptop does not of itself preclude the use of an Addin.
That said, you can also 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
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
invoice, mailmerge, multiline |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with formula and math involved with totaling data for invoicing | lonniepoet | Excel | 2 | 01-11-2016 03:01 PM |
Trouble doing a Mailmerge in Word 2010 with multiple records for the same client | Merlot | Mail Merge | 2 | 12-07-2015 10:13 AM |
Table in Mailmerge from selected items in access | cnaab | Mail Merge | 1 | 11-01-2014 12:45 AM |
Mailmerge certain text using multiple if statements | Debs | Mail Merge | 4 | 06-19-2014 03:34 AM |
Outlook CONTACTS used for invoicing | Garratt | Outlook | 0 | 02-16-2006 06:33 PM |