Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Mail Merge

LinkBack Thread Tools Display Modes
Old 11-22-2017, 06:26 PM
spaynter spaynter is offline Windows 10 Office 2007
Join Date: Nov 2017
Posts: 1
spaynter is on a distinguished road
Question Read the links, still having trouble with Field Codes

Hello - I have a similar problem to what others have posted re: Mail Merge for Donation Acknowledgements.
I've already downloaded the Catalog Mail Merge and read the tutorials ... unfortunately in all the examples they do not give the Field Coding, which is frustrating for a first timer.

I looked at the Microsoft forums and articles ... I did get some help with the Field Coding there ... however I'm still doing something wrong.

I have a VERY simple data base: Donor Name, Date of Donation, Amount ...

I tried running a basic code and things seemed okay (altered a bit from the examples) unfortunately donor shows up multiple times with grouped amounts ... and the grouping doesn't seem to have rhyme or reason


Mr. and Mrs. B

1/6/2017 10.00

1/6/2017 15.00
1/11/2017 10.00

1/11/2017 15.00

Mr. and Mrs. L

1/11/2017 50.00

1/23/2017 50.00

Then it goes back ...

Mr. and Mrs. B

1/30/2017 10.00

1/30/2017 10.00

Mr. and Mrs. L


This is the Code I used ... (the spacing may be off in this "paste" since I can't copy it directly)

{ IF { MERGESEQ } = "1" "Dear { MERGEFIELD Name }we kindly acknowledge your 2017 contributions:" "" }<ENTER>
{ SET Place1 { MERGEFIELD Name }}<ENTER>
{ If { Place2 } <> { Place1 }"<ENTER>
Dear { MERGEFIELD Name } we kindly acknowledge your 2017 contributions:<ENTER>
{ MERGEFIELD Date } ${ MERGEFIELD Amount }.00" "{ MERGEFIELD Date } ${ MERGEFIELD Amount }.00" }{ SET Place2 { MERGEFIELD Name }}<ENTER>

Thank you in advance for all of your help.
Reply With Quote
Old 11-22-2017, 08:08 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,191
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold

Your mailmerge field coding appears to be based on the MS articles rather than the tutorial you downloaded. The coding in the MS articles won't do what you want; you need the tutorial's field coding for that. For some worked examples, see the attachments to the posts at:

Another option, if your workbook has a separate sheet with just a single instance of each of the grouping criteria, would be to use a DATABASE field in a normal ‘letter’ mailmerge main document could be used without the need for a macro. For an example of that, see:
The DATABASE field can even be used without recourse to a mailmerge, though that may not suit your requirements. An example of such usage can be found at:

Alternatively, you may want to try one of the Many-to-One Mail Merge add-ins, from:
Graham Mayor at; or
Doug Robbins at
Paul Edstein
[MS MVP - Word]
Reply With Quote

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Code to search for field codes with certain text before the Field code and to change style welcometocandyland Word VBA 4 02-08-2017 06:53 PM
IF in field codes? tinfanide Word 1 09-15-2016 06:19 AM
New to Field Codes Panzer336 Word 2 04-11-2016 07:57 AM
trouble with excel to word links. acceptor Word 3 01-02-2015 12:14 PM
Formula Field using Field Codes hunter2193 Word 3 04-05-2013 04:58 AM

All times are GMT -7. The time now is 01:56 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc. is not affiliated with Microsoft