Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
[email protected] mzimmers@gmail.com is offline
external usenet poster
 
Posts: 11
Default using Word field "if" for a list item?

Hi -

I'm not sure this is the exact right forum for this question, but
hopefully it's close enough!

I'm trying to use the Word field "if...then...else" in a merge-data
document. The snag is that I want to conditionally include an item in
the middle of a numbered list, but I don't seem able to imbed the list
element formatting within the "if" construct.

1. is there a way to do this with this construct?
2. is there a *better* way to do this?

Thanks for any help...

mz

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default using Word field "if" for a list item?

The forum is OK, but I believe we need a bit more information on what it is
that you are starting with (i.e. details of the data) and what you are
trying to achieve. Information on the latter is probably best conveyed by a
mock-up of the desired result.

If you can give us that, it will give a better chance of being able to help
you.

--

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

Doug Robbins - Word MVP

wrote in message
oups.com...
Hi -

I'm not sure this is the exact right forum for this question, but
hopefully it's close enough!

I'm trying to use the Word field "if...then...else" in a merge-data
document. The snag is that I want to conditionally include an item in
the middle of a numbered list, but I don't seem able to imbed the list
element formatting within the "if" construct.

1. is there a way to do this with this construct?
2. is there a *better* way to do this?

Thanks for any help...

mz



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
[email protected] mzimmers@gmail.com is offline
external usenet poster
 
Posts: 11
Default using Word field "if" for a list item?

I'd be happy to do a mock-up. I'm relatively new to these boards -- do
I attach a short Word file somehow, or just put a bit of text inline
here?

Thanks...

  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
[email protected] mzimmers@gmail.com is offline
external usenet poster
 
Posts: 11
Default using Word field "if" for a list item?

And as long as I'm asking simplistic questions: how can I imbed
carriage returns in the text within an "if" word field? I'm having
trouble getting the paragraph spacing the way that I want it using the
"if" field, and I'm thinking that if I just manually take control of
the carriage returns, I can make it work. Thanks...

  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default using Word field "if" for a list item?

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.

Peter Jamieson

wrote in message
oups.com...
And as long as I'm asking simplistic questions: how can I imbed
carriage returns in the text within an "if" word field? I'm having
trouble getting the paragraph spacing the way that I want it using the
"if" field, and I'm thinking that if I just manually take control of
the carriage returns, I can make it work. Thanks...





  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
[email protected] mzimmers@gmail.com is offline
external usenet poster
 
Posts: 11
Default using Word field "if" for a list item?

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

  #7   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default using Word field "if" for a list item?

No, attachments are frowned upon.

Just create it as best you can in the body of the message that you post to
the group.

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

wrote in message
ups.com...
I'd be happy to do a mock-up. I'm relatively new to these boards -- do
I attach a short Word file somehow, or just put a bit of text inline
here?

Thanks...



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eliminate "copy" of "saved as" document showing up in file list Kaboodle Microsoft Word Help 2 February 14th 07 11:06 AM
"Print current page" should have a "+n pages" field. rawahoho Microsoft Word Help 5 November 16th 06 03:26 PM
New field for Word: {SCREENTIP "DisplayText" "TipText"} DQC from Prescott AZ Microsoft Word Help 1 March 17th 06 11:29 PM
How to turn "a list of bullet points" into a "task check list/box" ? [email protected] Tables 3 November 27th 05 05:32 PM


All times are GMT +1. The time now is 12:34 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"