返回 WebPageFonts 集合,该集合代表用户在 Excel 中打开 Web 页,而该 Web 页中没有指定任何字体信息,或者当前默认字体无法显示 Web 页中的字符集时,Microsoft Excel 将使用的字体集。只读。
本示例将 English、Western European 或 Other Latin Script 字符集的默认等宽字体设置为“Courier New”,14 磅。
With Application.DefaultWebOptions _
.Fonts(msoCharacterSetEnglishWesternEuropeanOtherLatinScript)
.FixedWidthFont = "Courier New"
.FixedWidthFontSize = 14
End With