View Single Post
  #12   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default How to make custom multilists I create advance automatically?

I was referring to getting rid of the list templates from the document.

I don't remember who said that recent Word versions should automatically
delete un-used list templates when they exceed a certain number (I think it
was 1500), but I probably picked it up in the newsgroups. :-) Clearly,
nothing happens if you add them via this simple code:

ActiveDocument.ListTemplates.Add OutlineNumbered:=True

First I tried to add 2000 list templates, but that caused Word to stop
responding. Adding 1000, then 500, and then some more--a total of
1547--could be done, though.

Saving, closing and reopening, or saving as did not affect the number of
list templates, so I suspect that the information I read was incorrect, or
that my memory fails me...

--
Stefan Blom
Microsoft Word MVP


"Beth Melton" wrote in message
...
I think that might be delete them from the gallery (which doesn't always
happen) or perhaps maintain a set number and deleted them as needed as an
effort to prevent corruption. I'm not sure about this one, though. I've
heard others say this is the case but I haven't decided if in fact that
occurs. I do know that when you use the Define New Multilevel list the
number of List Templates do increment in the document even though they may
not display in the gallery. I'm referring to using MsgBox
ActiveDocument.ListTemplates.Count to find the number of List Templates
that have been added to the document.

Which are you referring to when you manually create them using a macro?
Deleted from the gallery or document?

Please post all follow-up questions to the newsgroup. Requests for
assistance by email cannot be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Coauthor of Word 2007 Inside Out:
http://www.microsoft.com/MSPress/boo...x#AboutTheBook

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/

"Stefan Blom" wrote in message
...
I thought that recent Word versions was supposed to delete excess list
templates? This doesn't seem to happen, though, at least not if you
manually
create them using a macro.

I see the (potential) benefit of using list styles. Too bad that you
cannot
use the name of the list style with a LISTNUM field...

--
Stefan Blom
Microsoft Word MVP


"Beth Melton" wrote:

Well, I probably shouldn't have said you "can't" (I've drilled this into
my
head due to the inconsistencies and issues with using the Define New
Multilevel List command), you can modify the list IF you are very
careful.
For most this can be a bit of hit or miss. One example is if you already
have a list in your document and your insertion point is in empty
paragraph
and use the Define New Multilevel List command you will create a new
list.
Or if you only have a portion of the list selected the results could be
the
same, it depends on what portion of the list you have selected and the
changes you make.

The underlying issue is once another List Template is created it can't
be
removed -- not even by using VBA. I haven't see the "too many list
templates" error encountered in the newsgroups as I did several years
ago
but too many could still corrupt a document. (My jury is still out on
whether this occurs in current versions or if they corrected the issue -
I've heard conflicting information between the MVPs and MS. ;-) )

Occasionally it appears those that aren't in use are removed from the
gallery but again, that seems to be hit or miss (I've been futzing with
this
for well over a year trying to figure out the specifics). I'm still
trying
to figure out which changes exactly prevents the removal (linking to the
Heading styles seems to cause some of this). But even if it's not
visible,
MsgBox ActiveDocument.ListTemplates.Count will still reveal the document
List Template count. If they aren't removed from the gallery, those that
are
incorrect will still be there for the inadvertent use which is what
leads to
the spaghetti numbering issues we've all been so found of. ;-). Whereas
by
creating a List Style you are providing a name for the List which
enables
modifications to the List Template and you eliminate the hit or miss
aspect
and as a result, numbering becomes more stable.

Please post all follow-up questions to the newsgroup. Requests for
assistance by email cannot be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Coauthor of Word 2007 Inside Out:
http://www.microsoft.com/MSPress/boo...x#AboutTheBook

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/

"Stefan Blom" wrote in message
...
You can certainly edit an existing multilevel list via the Define New
Multilevel List dialog box, but I guess it may be no more safe (or
only
marginally safer) than using the Bullets and Numbering dialog box of
previous versions.

"Beth Melton" wrote in message
...
You might want to use the Define new List Style command instead of
the
Define New Multilevel List command. Essentially they are the same but
once
you create the Multilevel list you can't modify it. Instead another
Multilevel list will need to be created. If you use a List Style then
the
same functionality is provided but it has a style associated with it
which
enables list modifications.

"Stefan Blom" wrote in message
...
Not all lists are recognized by Word's autoformatting features.
Instead,
set up a multilevel list with the desired formatting. On the Home
tab of
the ribbon, click the Multilevel List button in the Paragraph group.
Then
click Define New Multilevel List. This shows a dialog box that
allows
you
to link paragraph styles to each list level (in the same way you
could
in
previous versions of Word); see
http://www.shaunakelly.com/word/numb...Numbering.html.

--
Stefan Blom
Microsoft Word MVP


"blur800" wrote in message
...
I used Word 2007 for Outlining my class notes. I have created a
custom
multilist that I like, but it will not advance automatically.
Example:
After I type "IV.", then a line of text, and then press Enter, the
next
line
is blank. I then have to type "V." manually. Microsofts default
lists
will
advance manually, but I cannot get the multilists that I create to
advance
automatically. Thanks for any help.