#1
|
|||
|
|||
solving a problem?! excel-word
Hi,
I have a table in excel - x rows, 6 columns for example: no of lines pr qty price total price VAT currency .... 10 203555 2 100 120 gbp 20 203555 5 100 120 gbp 30 203555 6 80 100 gbp 10 204678 1 10 12 gbp 10 203787 1 8 10 gbp 20 203787 1 10 12 gbp etc..... I want to export in a word template in order to create multiple invoices and I was tried to make this using mail merge from word but I'm not able to put 3 lines in a single invoice, then one line in the second one, then 2 lines in third. The ideea is to create a mail merge with rules or a macro in excel which will be able to create 50 or 60 individual invoices for which I have a template. thank you |
#2
|
||||
|
||||
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. 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 http://windowssecrets.com/forums/sho...l=1#post928391 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 In addition to a 'Many to One' merge, the latter handles: • Merge with Charts • Duplex Merge • Merge with FormFields • Merge with Attachments • Merge to Individual Documents • Merge, Print and Staple
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
many thanks!!! I'll read &try to do it.
thnaks again! |
Tags |
macro, vba, word 2010 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem transferring form controls from excel to word | pluqk | Word | 1 | 11-19-2015 07:23 PM |
Problem With Updating Linked Excel Tables in Word 2013 | maverick1714 | Word | 6 | 09-30-2014 12:30 AM |
problem copying active excel table onto word, office 2013 | billb | Word | 2 | 01-08-2014 05:12 PM |
Problem to view an Excel spreadsheet in Word file. | d-force | Word | 2 | 08-28-2012 10:13 PM |
Microsoft word/excel problem | ewicc | Office | 2 | 04-19-2010 07:35 AM |