Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.51 KB

Office.WebPageFont.ProportionalFontSize.md

File metadata and controls

51 lines (31 loc) · 1.51 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
WebPageFont.ProportionalFontSize property (Office)
vbaof11.chm224002
vbaof11.chm224002
Office.WebPageFont.ProportionalFontSize
b51333ff-5017-8533-ea74-3a104ed67dd8
01/29/2019
medium

WebPageFont.ProportionalFontSize property (Office)

Sets or gets the proportional font size setting in the host application, in points. Read/write.

Syntax

expression.ProportionalFontSize

expression A variable that represents a WebPageFont object.

Remarks

When you set the ProportionalFontSize property, the host application does not check the value for validity. If you enter an invalid value, such as a nonnumber, the host application sets the size to 0 points. You can enter half-point sizes; if you enter other fractional point sizes, they are rounded up or down to the nearest half-point.

Example

This example sets the proportional font and proportional font size for the English/Western European/Other Latin Script character set in the active application.

Application.DefaultWebOptions. _ 
Fonts(msoCharacterSetEnglishWesternEuropeanOtherLatinScript) _ 
.ProportionalFont = "Tahoma" 
Application.DefaultWebOptions. _ 
Fonts(msoCharacterSetEnglishWesternEuropeanOtherLatinScript) _ 
.ProportionalFontSize = 14.5

See also

[!includeSupport and feedback]