|
|
|
date: Thu, 10 Apr 2008 11:17:00 -0700,
group: microsoft.public.word.vba.beginners
back
Re: Skipping numbers in enumerated lists from VBScript/VBA
Now I understand that you mean numbered lists, what you need to do is insert
a suitable LISTNUM field at the end of item 2 so that the next item is item
6
This in turn may require that you define your list styles based on a named
ListTemplate which you can then refer to in the LISTNUM field.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
"shaagerup" wrote in message
news:FBE1B50C-27B7-48CC-AD28-AF7A769E4A4C@microsoft.com...
> Hello
>
> I would like to be able to create a numbered list from VBScript/VBA, and
> skip certain numbers in that list.
>
> E.g.:
> 1. First insertion
> 2. Second insertion
> 6. Third insertion
>
> From the object structure exposed by the ListParagraphs collection, it
> seems
> that some "empty" list elements are inserted between 2. and 6., but I
> can't
> find the property that hides/unhides them..
>
> In the XML-format it seems to be caused by the <w:vanish/>-tag, but I
> would
> much rather like to use your API than to handcode it with XML..
>
> Is this possible, and if so, can any of you point me in the right
> direction?
> I've been struggling with this for a couple of days now, and I will be
> very
> grateful for a solution :-)..
>
> Best regards,
> Søren
date: Fri, 11 Apr 2008 18:42:12 +0100
author: Jonathan West
|
|