Reply
 
Thread Tools Display Modes
  #1   Report Post  
Dave E.
 
Posts: n/a
Default How do I add a new document to an existing doc?

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
  #2   Report Post  
Charles Kenyon
 
Posts: n/a
Default How do I add a new document to an existing doc?

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

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
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.

"Dave E." Dave wrote in message
...
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



  #3   Report Post  
Graham Mayor
 
Posts: n/a
Default How do I add a new document to an existing doc?

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
Word MVP web site http://word.mvps.org


Dave E. wrote:
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



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
columns in an existing word document? dirhelp Page Layout 1 September 23rd 05 01:35 AM
how to put existing A4 document into bookfold? david Page Layout 1 September 2nd 05 01:19 AM
How do I make a heading from an existing Word document? Quantumleaper Microsoft Word Help 1 August 5th 05 02:01 AM
Creating a drop-down list in an existing Word document Kevin Microsoft Word Help 3 December 9th 04 12:23 AM
how to copy Word doc, including header to an existing document Georg Hodosi Formatting Long Documents 5 December 3rd 04 11:23 PM


All times are GMT +1. The time now is 10:51 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"