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 2004

Tip: Looking for answers? Try searching our database.

Inserting additional documents using If Statements

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Julie DeCandia - 17 Jun 2004 15:37 GMT
How do I include an additional page to the main merge document if certain conditions apply?  I have constructed an if statement to say that if a condition is met to insert the additional page if not do nothing.  But I keep getting an additional blank page added to each record that does not meet the condition.
ex:
{ IF "{MERGEFIELD AidID }" = "Scholarship" { INCLUDETEXT "C:\\mydocs\\scholarship.doc" \* MERGEFORMAT }" "" }
Cindy M  -WordMVP- - 18 Jun 2004 17:47 GMT
Hi =?Utf-8?B?SnVsaWUgRGVDYW5kaWE=?=,

> How do I include an additional page to the main merge document if certain conditions apply?  I have constructed an if statement to say that if a condition is met to insert
the additional page if not do nothing.  But I keep getting an additional blank page added
to each record that does not meet the condition.
> ex:
> { IF "{MERGEFIELD AidID }" = "Scholarship" { INCLUDETEXT "C:\\mydocs\\scholarship.doc" \* MERGEFORMAT }" "" }

Have you tested this by using "plain text" entries instead of the IncludeText field, just
to be sure it's not a problem with the true/false condition? Which version of Word are we
dealing with?

Note that one should usually turn this around:

{ IncludeText "C:\\mydocs\\scholarship.doc" { IF { mergefield AidID } = Scholarship
"BookmarkNameWithPage" "BookmarknameNoContent" } }

Word has a tendency to update fields from the inside out, which can give odd results with
IF fields under these circumstances.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in the
newsgroup and not by e-mail :-)
 
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.