Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2007

Tip: Looking for answers? Try searching our database.

IF Field breaking bullets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andre'' The Hunter - 10 Sep 2007 08:26 GMT
Hello,
i'm have having a problem in Word 2003 for PC. When I create an IF field as
part of a bulleted list, the indent is correct but the bullet is removed. The
problem seems to be caused by the carriage return in the result of the IF
field. this causes the bullet to be removed on whichever line the field is
placed.
A few examples follow (? is the bullet point):

EXAMPLE 1
    Bullet 1
{ IF "T" = "T" "Bullet 2" "Bullet 3
    Bullet 4" }
    Bullet 5

Bullet 2,3 and 4 are being inserted by an IF Field and if the condition is
true then Bullet 2 is inserted, otherwise Bullet 3 and 4 are inserted.

RESULT 1
    Bullet 1
Bullet 2
    Bullet 5

however, the problem is that the bullet point for Bullet 2 is removed.

EXAMPLE 2
    Bullet 1
{ IF "T" = "F" "Bullet 2" "Bullet 3
    Bullet 4" }
    Bullet 5

notice that the IF field should display Bullet 3 and 4 now

RESULT 2
    Bullet 1
Bullet 3
    Bullet 4
    Bullet 5

in this case Bullet 4 was inserted correctly. but again no bullet for the
first one. the perplexing case is when the IF conditional field is inserted
after Bullet 1.

EXAMPLE 3
    Bullet 1{ IF "T" = "T" "
Bullet 2" "
Bullet 3
    Bullet 4" }
    Bullet 5

this should insert a hard return before Bullet 2. this results in:

RESULT 3
Bullet 1
    Bullet 2
    Bullet 5

any help would be appreciated

Andre'
macropod - 10 Sep 2007 10:29 GMT
Hi Andre,

Here are two workarounds showing how you can embed one or more bulleted paragraphs in an IF test, according on whether you want to
cascade or nest the fields:

For cascading:
{QUOTE "¶
"{IF BkMrk1 <> 0 "Cascade 1A¶
Cascade 1B¶
"}{IF BkMrk2 <> 0 "Cascade 2A¶
Cascade 2B¶
"}{IF BkMrk3 <> 0 "Cascade 3A¶
Cascade 3B¶
"}{IF BkMrk4 <> 0 "Cascade 4A¶
Cascade 4B¶
"}}

For nesting:
{QUOTE "¶
"{IF BkMrk1 <> 0 "¶
Nested 1A¶
Nested 1B¶
" {IF BkMrk2 <> 0 "Nested 2A¶
Nested 2B¶
" {IF BkMrk3 <> 0 "Nested 3A¶
Nested 3B¶
" {IF BkMrk4 <> 0 "Cascade 4A¶
Cascade 4B¶
"}}}}}

In both cases, format the ¶ appearing after the 'QUOTE' statement as a non-bullet paragraph with a 1pt font and no leading/trailing
space.

Cheers
Signature

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

> Hello,
> i'm have having a problem in Word 2003 for PC. When I create an IF field as
[quoted text clipped - 55 lines]
>
> Andre'
macropod - 10 Sep 2007 10:41 GMT
For cascading:
{QUOTE "¶
"{IF BkMrk1 <> 0 "Cascade 1A¶
Cascade 1B¶
"}{IF BkMrk2 <> 0 "Cascade 2A¶
Cascade 2B¶
"}{IF BkMrk3 <> 0 "Cascade 3A¶
Cascade 3B¶
"}{IF BkMrk4 <> 0 "Cascade 4A¶
Cascade 4B¶
"}}

For nesting:
{QUOTE "¶
"{IF BkMrk1 <> 0 "Nested 1A¶
Nested 1B¶
" {IF BkMrk2 <> 0 "Nested 2A¶
Nested 2B¶
" {IF BkMrk3 <> 0 "Nested 3A¶
Nested 3B¶
" {IF BkMrk4 <> 0 "Cascade 4A¶
Cascade 4B¶
"}}}}}

In both cases, format the ¶ appearing after the 'QUOTE' statement as a non-bullet paragraph with a 1pt font and 1pt less leading or
trailing space than a standard bullet paragraph.

Cheers
Signature

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

> Hi Andre,
>
[quoted text clipped - 89 lines]
>>
>> Andre'
Andre'''' The Hunter - 11 Sep 2007 02:46 GMT
thanks for quick response!
took me a bit of fiddling to understand...but it works!

thank you!

Andre'

> Hi Andre,
>
[quoted text clipped - 89 lines]
> >
> > Andre'
macropod - 11 Sep 2007 11:08 GMT
You're welcome.

Cheers
Signature

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

> thanks for quick response!
> took me a bit of fiddling to understand...but it works!
[quoted text clipped - 98 lines]
>> >
>> > Andre'
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.