DefaultWebOptions.Fonts property (Word)
Returns the WebPageFonts collection representing the set of fonts that Microsoft Word uses when you open a webpage in Word.
Syntax
expression.Fonts
expression An expression that returns a DefaultWebOptions object.
Remarks
Word uses the fonts in the WebPageFonts collection to display webpages in Word when either there is no font information specified on the webpage or Word is unable to display the character set.
Example
The following example sets the default fixed-width font for the English/Western European/Other Latin Script character set to Courier New, 14 point.
With Application.DefaultWebOptions _
.Fonts(msoCharacterSetEnglishWesternEuropeanOtherLatinScript)
.FixedWidthFont = "Courier New"
.FixedWidthFontSize = 14
End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for