Re: Styles, setting bullet gallery
From: Word Heretic (myfullname_at_tpg.com.au)
Date: 05/18/04
- Next message: Jay Freedman: "Re: Missing reference to IE6 within Word VBA"
- Previous message: Word Heretic: "Re: restarting autonumber"
- In reply to: John D: "Styles, setting bullet gallery"
- Next in thread: John Davidson: "Re: Styles, setting bullet gallery"
- Reply: John Davidson: "Re: Styles, setting bullet gallery"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 May 2004 11:05:52 +1000
G'day John D <anonymous@discussions.microsoft.com>,
I always link styles to LTs in the document itself.
I search the existing doc LT collection for one of the right name, if
its not found I create a new one with ActiveDocument.ListTemplates.Add
...
I then style up the LT as required, and finish up with:
ActiveDocument.ListTemplates(1).ListLevels(1).LinkedStyle = _
"The style name"
Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com
steve from wordheretic.com (Email replies require payment)
John D reckoned:
>Hi All,
>I am trying to programatically set styles and I am having problems setting the ListTemplate(number) refer code below. My code is setting the values OK but this code is linking the style to ListTemplate (6) instead of ListTemplate (1)
>What am I doing wrong or what things should I be looking for to find the error
>Is there any value in giving the ListTemplate a Name and using that.
>
> X=1
> ActiveDocument.Styles(Name).LinkToListTemplate ListTemplate:=ListGalleries(wdBulletGallery). _
> ListTemplates(X), ListLevelNumber:=1
>
>John D
- Next message: Jay Freedman: "Re: Missing reference to IE6 within Word VBA"
- Previous message: Word Heretic: "Re: restarting autonumber"
- In reply to: John D: "Styles, setting bullet gallery"
- Next in thread: John Davidson: "Re: Styles, setting bullet gallery"
- Reply: John Davidson: "Re: Styles, setting bullet gallery"
- Messages sorted by: [ date ] [ thread ]