Creating Word template

M

motupal

Dear All,

I need some sample code to do the following.

1. Open a word document and Create the Mail merge fields
in the document. This has to be done on the fly.

2. Update the Merge Fields with the information in the
XML file.

Save the document.

Thanks for your help.

Regards
Motupal
 
C

Cindy M -WordMVP-

Hi Motupal,
1. Open a word document and Create the Mail merge fields
in the document. This has to be done on the fly.
Record this in a macro in order to get the basic syntax
2. Update the Merge Fields with the information in the
XML file.
Can't be done using merge fields. Mail merge is not able to
link to data in an XML file. If the data must come from
XML, then don't bother with merge fields and mail merge.
You might as well stick with bookmarks and process each
record using code.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

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