Default Font Size

K

Klaus Linke

Khalid said:
How can I set the Default Font Size programmatically
through VB.?

Thanks


Hi Khalid,

I think this has been answered elsewhere, but you could use something like
With ActiveDocument.Styles(wdStyleNormal)
.Font.Size = 7.5
End With
to change the size of text in "Normal" style.

To make the change in the attached template, you'd have to open this
template and make the change there (... then, all new documents based on
the template have the new default font size):
Dim myTemplate As Template
Set myTemplate = ActiveDocument.AttachedTemplate
myTemplate.OpenAsDocument
With ActiveDocument.Styles(wdStyleNormal)
.Font.Size = 8.5
End With
ActiveDocument.Close SaveChanges:=wdSaveChanges

Regards,
Klaus
 

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