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 / August 2007

Tip: Looking for answers? Try searching our database.

Nested if and includetext

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lupe - 30 Aug 2007 15:32 GMT
Hi,
Most probably this has a simple solution, but at the moment I cannot seem to
find it.
I have a master file wich reads text from another file based on several
conditions.
One of those fields has 5 or more options that can be filled in, but only
need to have a specific text, all the other options should have the same
text. So it's an IF THEN ELSE statement.
I have: If mergefield personalia is "Civil Registry", includetext text1, if
mergefield personalia is "company badge" includetext text2, all other options
includetext text3.
Thanks, Lupe
Doug Robbins - Word MVP - 30 Aug 2007 20:26 GMT
{ IF { MERGEFIELD personalia } = "Civil Registry"  { INCLUDETEXT
"drive:\\path\\text1.doc" } { IF { MERGEFIELD Personalia } = "company badge"
{ INCLUDETEXT "drive:\\path\\text2.doc" } { INCLUDETEXT
"drive:\\path\\text3.doc" } } }

You must use Ctrl + F9 to insert each pair of field delimiters { } and you
will need to adjust the INCLUDETEXT fields shown above so that the actually
point to the required text.
Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hi,
> Most probably this has a simple solution, but at the moment I cannot seem
[quoted text clipped - 11 lines]
> includetext text3.
> Thanks, Lupe
Lupe - 30 Aug 2007 21:08 GMT
Doug, Many Thanks!
I figured it out via Word merge field IF THEN ELSE, but the other way around
(I used <> "civil..etc.), but this is much easier.
Lupe

> { IF { MERGEFIELD personalia } = "Civil Registry"  { INCLUDETEXT
> "drive:\\path\\text1.doc" } { IF { MERGEFIELD Personalia } = "company badge"
[quoted text clipped - 19 lines]
> > includetext text3.
> > Thanks, Lupe
 
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.