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