That is VERY helpful, thank you. Now, if I use the INCLUDETEXT function,
will it bring in the entire document's formatting, or just the literal text
itself? I searched online for a long time and couldn't figure that part out.
Thanks again for all the help!
"Graham Mayor" wrote:
With a couple of minor provisos this will work.
1. Don't use smart quotes in the search string
2. Convert the result to lower case to be sure of catching all.
3. You can either paste the whole page between the quotes where you have
"(true)" or use an includetext field (as shown) or autotext field.
{ IF{ Mergefield MAT_Movie \*Lower} = "rain*" "{ INCLUDETEXT
"C:\\PATH\\DOCUMENT.DOC"}" "" }
Use CTRL+F9 for each field bracket pair.
--
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
JAnderson wrote:
I'll try to be clear here. Two questions.
1) I want a boolean operator in an IF statement, is this possible?
Example:
{if{MERGEFIELD "MAT_Movie"}= "Rain*" "(true)" "(false)"}
I want to catch all fields that begin with "Rain", such as "Rainy"
"Rain Man", etc.
2) THEN, for the true condition, I want to have an entire formatted
page appear (such as a generic order form). If false, I'd like to
leave it blank and NOT include the order form. Can I just paste the
entire page I want into the true condition "" quotes? Otherwise,
would I have to reference a file to import at that space?
Thanks in advance for any suggestions!