Determining the Font in a listtemplate

J

JustLearning

I am trying to figure out how to determine the font used in the numbering
scheme of a list using visual basic.

MsgBox para.Range.ListFormat.ListTemplate.ListLevels(1).NumberStyle

MsgBox para.Range.ListFormat.ListTemplate.ListLevels(1).Font
 
J

Jean-Guy Marcil

JustLearning was telling us:
JustLearning nous racontait que :
I am trying to figure out how to determine the font used in the
numbering scheme of a list using visual basic.

MsgBox para.Range.ListFormat.ListTemplate.ListLevels(1).NumberStyle

MsgBox para.Range.ListFormat.ListTemplate.ListLevels(1).Font

You forgot to add .Name after .Font.
Also, if no font was explicitly set, the numbering takes on the inherent
paragraph font and then "" is returned.

By the way, it would be nice if you took the time to formulate a question...

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top