Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2015, 12:40 AM
alin_d alin_d is offline solving a problem?! excel-word Windows 8 solving a problem?! excel-word Office 2010 64bit
Novice
solving a problem?! excel-word
 
Join Date: Nov 2015
Location: romania
Posts: 2
alin_d is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 11-29-2015, 01:54 AM
macropod's Avatar
macropod macropod is offline solving a problem?! excel-word Windows 7 64bit solving a problem?! excel-word 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

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]
Reply With Quote
  #3  
Old 11-29-2015, 07:59 AM
alin_d alin_d is offline solving a problem?! excel-word Windows 8 solving a problem?! excel-word Office 2010 64bit
Novice
solving a problem?! excel-word
 
Join Date: Nov 2015
Location: romania
Posts: 2
alin_d is on a distinguished road
Default

many thanks!!! I'll read &try to do it.
thnaks again!
Reply With Quote
Reply

Tags
macro, vba, word 2010



Similar Threads
Thread Thread Starter Forum Replies Last Post
solving a problem?! excel-word 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

Other Forums: Access Forums

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