View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Embedding values of merge fields in the final document

Roughly speaking, Word tries to "resolve" most field types so that the
fields have gone altogether in the output document. So for example SET and
REF, and MERGEFIELD fields will probably all go. However, you may find that
some fields such as { = } fields, { INCLUDEPICTURE } fields and {
INCLUDETEXT } fields remain, and some may remain if they are in
headers/footers, e.g. { PAGE } fields.

So your options are essentially:
a. find a way to achieve the output you need just using fields
b. mark the fields in some way so that you can easily find the resulting
text in the output and modify it. For exmaple, you might be able to surround
each field with special characters such as ¬¬ or some such, or mark each
field in a particular way (colour it green, or apply a specific character
style).
c. in Word 2002/2003, use the Merge Events and VBA to do stuff to the mail
merge main document before/after each record is merged
d. "roll your own" mailmerge.

Peter Jamieson

"Mike" wrote in message
...
Hi! I need to parse the final document and make some changes based on the
values of merged fields. However, Word 2003 reports the count of fields or
mail merge fields = 0.
I think it does it on purpose.

Is there a way I can embed the values of merged fields into the output
document? Is there a way I can write them into some kind of a bookmark?
What
are my options?

Many thanks in advance,

--Michael