Fonts Property

Microsoft Word Visual Basic

Fonts Property

       

Returns the WebPageFonts collection representing the set of fonts Microsoft Word uses when you open a Web page in Word and either there is no font information specified in the Web page, or the current default font can't display the character set in the Web page.

expression.Fonts

expression   Required. An expression that returns a DefaultWebObtions object.

Example

This example sets the default fixed-width font for the English/Western European/Other Latin Script character set to Courier New, 14 points.

With Application.DefaultWebOptions _
        .Fonts(msoCharacterSetEnglishWesternEuropeanOtherLatinScript)
    .FixedWidthFont = "Courier New"
    .FixedWidthFontSize = 14
End With