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
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top