Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2018, 08:40 AM
Georgina Owen Georgina Owen is offline Mail Merge - Creating customer account Windows 10 Mail Merge - Creating customer account Office 2016
Novice
Mail Merge - Creating customer account
 
Join Date: May 2018
Posts: 4
Georgina Owen is on a distinguished road
Default Mail Merge - Creating customer account

Using Windows 10 I am trying to create a customer account for outstanding invoices using Mailmerge (Directory). Each customer will have a variable number of outstanding invoices, so I need the customer account to include all the invoices for that customer with the outstanding amounts, then break onto a new page/new document when the customer name changes. I have the spreadsheet sorted by customer name. Although a common enough thing to want to try and do, I am struggling to find any code that I can use to do this. Does anyone have any code or a template that I can use to do this? I can't seem to find one. Thankyou
Reply With Quote
  #2  
Old 05-17-2018, 03:05 PM
macropod's Avatar
macropod macropod is offline Mail Merge - Creating customer account Windows 7 64bit Mail Merge - Creating customer account Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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 (it's a 'Sticky' thread at the top of this forum):
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

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
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-17-2018, 03:26 PM
macropod's Avatar
macropod macropod is offline Mail Merge - Creating customer account Windows 7 64bit Mail Merge - Creating customer account Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

Cross-posted at: https://www.office-forums.com/thread...tomer.2350314/
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 05-17-2018, 03:33 PM
Georgina Owen Georgina Owen is offline Mail Merge - Creating customer account Windows 10 Mail Merge - Creating customer account Office 2016
Novice
Mail Merge - Creating customer account
 
Join Date: May 2018
Posts: 4
Georgina Owen is on a distinguished road
Default

Thankyou Paul. I will have a go at this tomorrow, and let you know how I get on.

Georgina
Reply With Quote
  #5  
Old 05-18-2018, 02:11 PM
Georgina Owen Georgina Owen is offline Mail Merge - Creating customer account Windows 10 Mail Merge - Creating customer account Office 2016
Novice
Mail Merge - Creating customer account
 
Join Date: May 2018
Posts: 4
Georgina Owen is on a distinguished road
Default

Paul, this has been incredibly useful. Thanks very much. I think (and hope) I am nearly there on this. Just one thing. One of my spreadsheet columns that I want to use is 'Date of delivery' which is in the format dd/mm/yy. When I use this in mailmerge it converts this to a number no matter what date format I use. So for example 27/03/18 becomes 43186 in the mail merge document, which I want it to stay as 27/03/18. Any idea how I change this? Thanks very much
Reply With Quote
  #6  
Old 05-18-2018, 03:02 PM
Georgina Owen Georgina Owen is offline Mail Merge - Creating customer account Windows 10 Mail Merge - Creating customer account Office 2016
Novice
Mail Merge - Creating customer account
 
Join Date: May 2018
Posts: 4
Georgina Owen is on a distinguished road
Default

Don't worry on the date format - it seems to be working now. Thankyou
Reply With Quote
Reply

Tags
mailmerge directory

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge - Creating customer account Creating Hyperlinks after a Mail Merge jeffreybrown Mail Merge 4 09-19-2017 06:35 PM
Mail Merge - Creating customer account Merge multiple orders for same customer blackystrat Mail Merge 3 02-08-2017 09:32 PM
specifying sender account for mail merge operations eNGiNe Mail Merge 3 12-19-2014 04:24 AM
Email Account for Mail Merge jdc15371 Mail Merge 1 12-05-2013 05:50 PM
Mail Merge - Creating customer account Mail merge going from the wrong account alexb123 Mail Merge 3 11-15-2011 11:49 PM

Other Forums: Access Forums

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