Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2006

Tip: Looking for answers? Try searching our database.

INCLUDETEXT, numbered paragraphs, extra line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JDolman - 07 Jun 2006 13:35 GMT
I am using an IF statement to have my mail merge document decide which of two
INCLUDETEXT statements will be used.  One INCLUDETEXTstatement pulls three
numbered (outline) paragraphs from from a different document and inserts them
into my mailmerge document.  Unfortunately, it also adds an extra line after
the insertion, which must be manually deleted after the merge is complete.  
Any ideas?

The IF statement looks like this:
{ IF { MERGEFIELD Deposit } <> $0.00 "{INCLUDETEXT
"C:\\pathname\\document.doc"}" "{INCLUDETEXT
"C:\\pathname\\otherdocument.doc"}"}
macropod - 07 Jun 2006 13:57 GMT
Hi,

If the paragraph you're inserting the text into is also outline numbered and
you bookmark the text you want inserted, without bookmarking the last
paragraph marker, that may give you the results you want. To use the
bookmark in the INCLUDETEXT field, the coding would be done something like:
{IF{MERGEFIELD Deposit}= 0 {INCLUDETEXT "C:\\path\\doc1.doc"} {INCLUDETEXT
"C:\\path\\doc2.doc"}" BkMrk}}
where 'BkMrk' is you bookmark's name.

If the paragraph you're inserting the text into isn't outline numbered, the
insertion of the extra paragraph is unavoidable. You can minimise its
effects, however, by adding a paragraph to the one that isn't causing the
problem, then formatting the paragraph the INCLUDETEXT field is attached to
in a 1pt font with no leading/trailing space.

As an aside, I notice that you're using two different documents. You can
have both text blocks in the same document, bookmark both blocks and use a
field constructed like:
{INCLUDETEXT "C:\\path\\doc.doc" {IF{MERGEFIELD Deposit}= 0 BkMrk1 BkMrk2}}
where BkMrk1 and BkMrk2 refer to your bookmarks.

Cheers

Signature

macropod
[MVP - Microsoft Word]

> I am using an IF statement to have my mail merge document decide which of two
> INCLUDETEXT statements will be used.  One INCLUDETEXTstatement pulls three
[quoted text clipped - 7 lines]
> "C:\\pathname\\document.doc"}" "{INCLUDETEXT
> "C:\\pathname\\otherdocument.doc"}"}
JDolman - 09 Jun 2006 15:19 GMT
Thanks for the suggestions!  I'll try that!

Jason

> Hi,
>
[quoted text clipped - 34 lines]
> > "C:\\pathname\\document.doc"}" "{INCLUDETEXT
> > "C:\\pathname\\otherdocument.doc"}"}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.