Getting propertys of the Normal style

D

DaveP

I'm trying to navigate through the Word object model to find the properties
of the Normal style used for that document - particularly the font name and
font size. I'm trying to do this for a large number of documents, so instead
of doing it manually, I want to navigate the object model from a VB
application. But I haven't found a way to get to the Normal style and it's
properties yet.

Does anyone know how to do this?

Thanks,
Dave P.
 
G

Greg Maxey

Do you mean something like this:

Sub Test()
Dim oStyle As Style
Set oStyle = ActiveDocument.Styles("Normal")
With oStyle
MsgBox .Font.Name
MsgBox .Font.Size
End With
End Sub
 
G

Greg Maxey

Shauna,

Mine is ;-). But then I hardly ever use Word for word processing. I agree
with your suggestion.
 

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