#1
|
|||
|
|||
Adding a Table with an "IF" Statement
Is it possible to add a Table (Table has Text only) using a "IF" statement?
i.e.: {IF <<Opportunity_State>> = "CA" "Add the Table" ""} So if the Merge Field "Opportunity_State", the Add the Table to the Doc, else, leave the Table out. Thank you, Shawn |
#2
|
||||
|
||||
Indeed, that is quite possible. Assuming you already have the table, insert plain double quotes either side of it and your mergefield (from the Insert Merge Field dropdown) followed by '= "CA" ' before the leading double quote. You should have something like:
«Opportunity_State»= "CA" "table" Select all of that and press Ctrl-F9. You should now have { «Opportunity_State»= "CA" "table" } Simply type 'IF' inside the opening brace, thus: {IF«Opportunity_State»= "CA" "table" } and you're ready to go. Note the space after the '=' in the field construction; it's essential.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thank You Sir, it worked perfectly.
Thanks Paul, |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
IF statement just generates text "MERGEFIELD" in document - what am I doing wrong? | Eri | Mail Merge | 1 | 03-03-2012 03:03 PM |
How to edit the "Format" and the "show level" of an EXISTING table of content? | Jamal NUMAN | Word | 2 | 08-14-2011 10:46 AM |
"Table of content" based on "Normal Style" behavior!!!! | Jamal NUMAN | Word | 4 | 07-08-2011 04:12 AM |
How to have colons (:) in the "Table of content" but to be hidden in the "Heading"? | Jamal NUMAN | Word | 0 | 06-26-2011 04:53 PM |
Why the "table of contents" doesn't take the same format of the "headings"? | Jamal NUMAN | Word | 5 | 06-15-2011 10:14 AM |