Hi,
I'm trying to create a little app that will programatically change the
default font for all of the users in the company, as we'd prefer it not to be
a manual job.
So far I've knocked together a quick VB6 app:
Private Sub Form_Load()
Dim wdApp As New Word.Application
wdApp.Visible = True
Dim wdDoc As Word.Document
wdApp.NormalTemplate.OpenAsDocument
Set wdDoc = wdApp.ActiveDocument
With wdDoc.Styles(wdStyleNormal).Font
.Name = "Franklin Gothic Book"
.Size = 12
End With
wdApp.NormalTemplate.Save
wdApp.NormalTemplate.Saved = True
' wdDoc.Save
wdDoc.Close
wdApp.Quit
End Sub
When the code gets to the NormalTemplate.Save line a message box appears in
the word window which makes no sense:
EOALPHANETOCARABICARABICABJADARABICALALPHA...
Then an error appears saying that it couldn't save the word template.
However it has actually updated it!
Can anyone tell me how to change the font and then save it back to the
default template (normal.dotm).
Thanks!