View Single Post
 
Old 09-18-2024, 10:11 AM
Italophile Italophile is offline Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 542
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Changing the font of the Normal style is as simple as:

Code:
Function ChangeFont(oDoc As Document) As Boolean
    Dim oStory As Range
    On Error GoTo err_Handler
    oDoc.Styles(wdStyleNormal).Font.Name = "Calibri"
    ChangeFont = True
lbl_Exit:
    Exit Function
err_Handler:
    ChangeFont = False
    Resume lbl_Exit
End Function
However, changing the Normal style in this way means it will no longer be the same as the document defaults which may lead to Table Styles not working correctly. It is not possible to set the document defaults using VBA.
Reply With Quote