Seq field solution?

Jonathan West jwest at mvps.org
Wed Mar 12 10:26:52 MDT 2008


>  Following Stuart's recommendation earlier in this thread, I read an
>  explanation on the MVP site about Word's numbering problems. Numbering
>  uses 'List Templates', which apparently have some strict rules for
>  successful use, without which they can get corrupted. I haven't had any
>  time to play with it yet, but I did find the applicable object in VBA
>  help, and it looked documented and straight-forward to program. Have you
>  worked with List Templates in VBA? I'm just curious, not dissing the
>  style- or field-based solutions at all.

I think Shauna Kelly' s site at mvps.org has some code specifically
for the purpose. I use a slight variation. I attach styles to a list
template, but I leave level 1 of the list template undefined and
unattached. Level 2 is set to restart numbering automatically after a
level 1 paragraph. To restart the numbering for a new list, all that
is needed is to insert a LISTNUM field of the appropriate type, for
which I have a small macro.

The result is absolutely bulletproof list numbering, where if I copy
and paste numbered items between documents or to different places in
the document, the numbering always and without exception fits in with
the destination list.

Regards
Jonathan West


More information about the TECHWR-L mailing list