DefaultWebOptions.Fonts Property

Word Developer Reference

Returns the WebPageFonts collection representing the set of fonts Microsoft Word uses when you open a Web page in Word.

Syntax

expression.Fonts

expression   An expression that returns a DefaultWebOptions object.

Remarks

Word uses the fonts in the WebPageFonts collection to display Web pages in Word when either there is no font information specified in the Web page or Word is unable to display the the character set.

Example

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

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

See Also