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 / Mailmerge and Fax / April 2004

Tip: Looking for answers? Try searching our database.

Mergefield  - Conditional ListNum

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve B - 01 Apr 2004 16:00 GMT
I have a simple document that uses ListNum to number each
paragraph.

1. Paragraph...
2. Paragraph...
3. Paragraph...
4. Paragraph...

Then I introduce an "if" statement that inserts text from
another document via "includeText".

1. Paragraph...
2. Paragraph...
3. {IF {MERGEFIELD MONTH}
= "APRIL" "{INCLUDETEXT "C:\\SPRING"}" ""}
4. Paragraph...

Text works fine. But, if the inserted text includes a
ListNum, then the numbers lose their sequence.

Any ideas on how to keep the numbers in sync regardless of
whether the "if" text is inserted or not inserted.

Thanks,
Steve B
Peter Jamieson - 06 Apr 2004 09:05 GMT
In my experience it's pretty hard to get sequence numbering right in  amerge
whatever you do. For starters I would personally always try to avoid LISTNUM
anyway since it relies on Word understanding exactly where each list begins
and ends, and there is no way using field codes to tell it. You could try
doing your numbering based on SEQ fields (or perhaps even using { = } fields
to calculate the numbers (and \*Arabic etc. to get the correct format). But
I suspect that in that case what will cause problems is the IF field. If so,
you can try "inverting" the IF and INCLUDETEXT so that you have something
more like

{ INCLUDETEXT "{ IF { MERGEFIELD Month } = "APRIL" "C:\\SPRING"
"C:\\EMPTYFILE" }" }

but even then you may run into problems.
Signature

Peter Jamieson - Word MVP
Word MVP web site http://word.mvps.org/

> I have a simple document that uses ListNum to number each
> paragraph.
[quoted text clipped - 21 lines]
> Thanks,
> Steve B
 
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.