R
Rcih007
I have read much of the advice on all the forums and MVP sites about how to
create styles with outline numbering using a named ListTemplate, and the
importance of linking the style to the ListTemplate and/or vice versa. What
I can't understand is which of the following I should be using:
(where MyNewStyle is a paragraph style and MyNewListTemplate is a
ListTemplate)
1)
Dim ltTemp As ListTemplate
Set ltTemp = ActiveDocument.ListTemplates("MyNewListTemplate")
ActiveDocument.Styles("MyNewStyle").LinkToListTemplate ListTemplate:=ltTemp
2)
ActiveDocument.ListTemplates("MyNewListTemplate").ListLevels(1).LinkedStyle
= "MyNewStyle"
3)
ListGalleries(wdOutlineNumberGallery).ListTemplates(7).ListLevels(1).LinkedStyle = "MyNewStyle"
Can anyone explain the difference, and which one(s) I should use?
Is it a good or bad thing to use both 1 AND 2; linking in both directions so
that my paragraph style is linked to my ListTemplate (1) and my ListTemplate
is liked to my style (2)?
Is there any merit in assigning a ListGallery to a paragraph style, or even
a ListTemplate to a ListGallery. (My initial attempts with this, using
either 1 or 2 or both, but not 3, appear to gradually fill up the Galleries
with my outline numbering each time I redefine the styles).
Any advice gratefully received.
Cheers
Rich
create styles with outline numbering using a named ListTemplate, and the
importance of linking the style to the ListTemplate and/or vice versa. What
I can't understand is which of the following I should be using:
(where MyNewStyle is a paragraph style and MyNewListTemplate is a
ListTemplate)
1)
Dim ltTemp As ListTemplate
Set ltTemp = ActiveDocument.ListTemplates("MyNewListTemplate")
ActiveDocument.Styles("MyNewStyle").LinkToListTemplate ListTemplate:=ltTemp
2)
ActiveDocument.ListTemplates("MyNewListTemplate").ListLevels(1).LinkedStyle
= "MyNewStyle"
3)
ListGalleries(wdOutlineNumberGallery).ListTemplates(7).ListLevels(1).LinkedStyle = "MyNewStyle"
Can anyone explain the difference, and which one(s) I should use?
Is it a good or bad thing to use both 1 AND 2; linking in both directions so
that my paragraph style is linked to my ListTemplate (1) and my ListTemplate
is liked to my style (2)?
Is there any merit in assigning a ListGallery to a paragraph style, or even
a ListTemplate to a ListGallery. (My initial attempts with this, using
either 1 or 2 or both, but not 3, appear to gradually fill up the Galleries
with my outline numbering each time I redefine the styles).
Any advice gratefully received.
Cheers
Rich