IF statement with INCLUDETEXT

MS WORD

    Next

  • 1. How to turn off warnings of SQL on MailMerge
    Hi everybody. I'd like to now if there's a VBA command like the "DoCmd.SetWarnings false" of the Access that 'turns off' the warnings. I'd like to do something like this, but in the word when I use the MailMerge. It always ask me if I want to insert the data in the document. Well, curse of yes. But how can I do this automatically? Thanks -- TiagoNogueira
  • 2. Email Merge w/ Word 2007 and Outlook 2003
    In the transition to Office/Exchange 2007, we have some users using everything in Office except for Outlook. A user reports that a merge to email works fine, going through the process, except the merge never occurs. Has anyone been successful in this?
  • 3. repeating a field
    Assuming that your list just has the Normal style associated with it, insert the following field in the header of the mail merge main document { STYLEREF Normal \l } -- 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 "computerteacher2" < XXXX@XXXXX.COM > wrote in message news: XXXX@XXXXX.COM ... > > Could someone help me please? I've created a mail merge for a classroom > word list. I have figured out how to merge the fields vertically to > make the page three columns, but would like to repeat the last field at > the top of the page (like guide words in a dictionary). Any > suggestions? > Thank you very much. > > > > > -- > computerteacher2
  • 4. merge in existing document
    I am working on making name badges for a party we have this week. I have a template made up (that has been around our office for YEARS) that has our company logo and border. I am trying to merge the information into this template, but can't figure out how. I am using Word 2003. I have tried to do mail merge, labels, use existing document, but it would work, it keeps changing from labels to a letter. If I wanted a letter I would do it. I don't want to have to type over 100 names into the template...is there ANYTHING I can do?? Thank you!
  • 5. After data source selected asks to Select Table nothing appears in
    After selecting the data source the system brings up a box called "Select Table" but nothing appears in the box to select. There is a drop down box but box will not let me select anything from it. The system will not let me get past this. How do I remove the Select Table feature?

IF statement with INCLUDETEXT

Postby TXlrYXNfUm9iaQ » Fri, 11 Nov 2005 01:32:09 GMT

Hello, I requested information from this user group before relative to the 
subject and achieved great results.  However I have been unable to duplicate. 
the statement is below

{IF {PART_TIME}>0 {INCLUDETEXT "FILENAME AND PATH"}}

It doesn't actually show the field part_time it shows the value(0).  
Regardless of the value the document is inserted.

I used ctrl+f9 to key braces but keyed in everything else except for the 
field part_time which is was input by insert a merge field

Any assistance would be greatly appreciated.

Re: IF statement with INCLUDETEXT

Postby Doug Robbins - Word MVP » Fri, 11 Nov 2005 04:11:35 GMT

It should be

{IF { MERGEFIELD PART_TIME}>0 {INCLUDETEXT "FILENAME AND PATH"} ""}

-- 
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








Similar Threads:

1.Possible BUG: Multiple HTTPrequests send from one includetext statement

2.Rookie INCLUDETEXT Or IF Statements

I am such a rookie at this, it is against the laws of nature...

I have a letter to 200 agencies.  There are nine possible boilerplate 
paragraphs that an agency will get a combination of.  I have been playing 
with an external file with the paragraphs given "bookmarks."  When I put the 
text into the bookmark dialogue box, I cannot control any simple formatting 
like BOLD or UNDERLINE.

I need the code to do the following:

If mergefield "computers" is not blank then INCLUDETEXT associated with 
bookmark "computers."  Keep the formatting for the "computers" paragraph.
If mergefield "computers" is blank - do nothing.

If mergefield "environment" is not blank then INCLUDETEXT associated with 
bookmark "environment."  Keep the formatting for the "environment" paragraph.
If mergefield "environment" is blank - do nothing.

etc. etc.

The letter may have two of these paragraphs, all nine paragraphs or no 
paragraphs or blank spaces.

Can someone get me started?
-- 
Thanks

You all are teaching me so much

3.which statement right , question isChoose the correct statement?

Choose the correct statement 

1.. Word document can be saved a web page and then converted back to a word 
document
2...Can be saved as web pages but cannot be converted back to word document
3...Word document cannot be saved as web pages
4...Word document cannot be saved as web pages and web page cannot be 
converted to the word document.

4.Using OR statements in an If, then, else statement

I'm trying to create an "if, then, else statement".  I understand the basics 
of If {mergefield XX} = "A" "Print this" "Dont print this".

How do I have the statement search for multiple criteria..If {mergefield XX} 
= "A or B or C" "Print this" "Dont print this"...without having to create a 
statement for each variable individually.

5.Multiple "OR" statements in a single "IF" statement

I've got a document that would be MUCH easier if I could just do
something like {IF { MERGEFIELD FieldName} = "A" or "B" or "C" or "D"
then "Print this text" otherwise "print this text"} - I've seen some
pretty complex nested IF statements.  Is there an easier way to do
this?  Maybe Microsoft could help enhance this capability in the
future.  Any thoughts?

6. Bookmark & IF Statement - always result the else statement

7. req: help with includetext

8. INCLUDETEXT and Mail Merging



Return to MS WORD

 

Who is online

Users browsing this forum: No registered users and 68 guest