Macro to add data to merged document

F

FJB

I work in an area of a company that reviews accounts and recommends
their closure, if necessary. The form which must be submitted for each
account has several standard fields (from a database) but has four
options in the recommendation section. Is there a way to write a macro
so that whatever the value of the "category" field (six options)
would determine what is printed in the recommendation section.

Many thanks
 
G

Graham Mayor

You don't need a macro but a field.
Create six texts that correspond with your six recommendations and name them
the same as the content of the appropriate category field either as autotext
entries, documents or bookmarked sections of a document. You can then insert
the content using either a autotext field or an includetext field thus:

{Autotext "{Mergefield Category}"}
or
{Includetext "c:\\pathname\\{Mergefield Catergory}.doc" }
or
{Includetext "c:\\pathname\\docname.doc {Mergefield Category}}


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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