View Single Post
  #9   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default using Word field "if" for a list item?

Hi mzimmers,

You can put a whole word document insie and IF field if you want, inluding paragraph breaks, page & section breaks - all except for
the final paragraph mark. For an idea of how to go about this, take a look at the topics under the heading titled 'Use Date (And/Or
Time) Comparisons To Vary Text' in my Date Calc 'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=249902

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

wrote in message oups.com...
On Mar 29, 11:33 am, "Peter Jamieson"
wrote:
Include paragraph marks in the result texts, e.g. if you have

{ IF X = Y "abc" "def" }

and you want

ab
c

if X = Y, put the insertion point after "ab" in the field and press Enter so
you have

{ IF X = Y "ab
c "def" }

(i.e. it's probably more obvious than you realised :-) ) However, whether
that will help solve your problem I cannot tell.


Yeah, sadly, that doesn't seem to work for me. The new paragraphs are
evident when in "View Field Code" mode, but they show up in white, and
don't appear to be included within the quotes holding the conditional
text.

Here's what I'm trying to do with lists:

- list item number 1. this applies to all documents blah blah blah...
- list item number 2. this applies to all documents blah blah blah...
{ IF {MERGEFIELD EntityType } = "Consultant" "- list item number 3.
this applies to documents pertaining to consultants blah blah blah..."
"" }
- list item number 4. this applies to all documents blah blah blah...

and so on and so forth. According to the online help, text formatting
isn't passed along with the text inside the "IF" statement. Evidently,
this includes list element formatting. The problem is, if I leave the
list item definition in the main document, it appears (as a blank)
even when the "IF" is false.

As I mentioned before, I'm totally open to other ways of approaching
this problem. Thanks again...