Mail Merge issue

R

Richard

Could someone please tell me what would be the best
possible solution for the following problem? Macro's,
Visual Basic, or some other way?


I have a data file that is in order by Zip Code. The
problem is this.

I need to read each record sequentially and figure out
which Mail Merge Letter to merge the data "record" with.
There are six possiblities for letters. So, for example,
Record 1 must be Mail Merged with Letter Type "Candle"
Record 2 "Enrollment"
Record 3 "Candle"
Record 4 "Candle"
Record 5 "Mass"

All the while keeping the Zip Order.
Any suggestions? and does this make sense?
Many Thanks
Richard
 
P

Peter Jamieson

There are two ways you can approach this.

If there is some simple field or combination of fields that you can use to
determine which letter needs to be produced, then you can try the following:
a. Let's suppose that the field "Letter" contains code A,B,C,D,E,F
a. set up the 6 letters, with the Merge fields you need. Put them in
c:\letters\a.doc, c:\letters\b.doc, c:\letters\c.doc, etc.
b. set up a new letter and attach it to your data source in the usual way.
Then use an { INCLUDETEXT } field to include the correct letter. It will
need to be something like

{ INCLUDETEXT "c:\\letters\\{ MERGEFIELD Letter }.doc" }

Then attempt to preview the merge.

If each letter has different headers and footers, you may find that you have
to bookmark the header, body (leave out the final paragraph mark), and
footer using names such as "header", "body" and "footer". Then instead of
the above, use

{ INCLUDETEXT "c:\\letters\\{ MERGEFIELD Letter }.doc" body }

and insert equivalent INCLUDETEXT fields in the header and footer of the
mail merge main document.

However, the more complication you introduce, the less likely this approach
is to work, and I suspect it is less reliable in Word 2002 than Word 2000.
Also, if there is no simple field or fields you can use to map to a document
name for each record, you can't use the approach. So another method would be
to use VBA to open the data source and the 6 letters and use automation to
execute one merge for each record in the data source. Precisely how to do
this would depend on the data source and how familiar you are with VBA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top