How do I add a new document to an existing doc?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a document which is basically a one page document. I need to add
another document to the first document only if certain criteria is met
(example IF MERGEFIELD = XYZ... then INCLUDETEXT c:\\add_doc_#2)

IF the criteria is not met then I just need the 1st document. I've tried
several things, but no matter where I put the IF MERGEFIELD statement I don't
get my required results. Thanks
 
You've got the basic idea down. You need nested fields, though. Create your
nested portions using the Ctrl-F9 key combination to insert your field
delimiters. Do your editing with field codes displayed (Alt-F9).
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
You need to get your syntax right, then, as Charles indicates, enter the
fields manually using CTRL+F9 for each pair of field brackets.

{IF {Mergefield fieldname} = "XYZ" "{Includetext "c:\\path\\filename.doc"}"}


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

My web site www.gmayor.com

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

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

Back
Top