Size

Returns or sets the font size used in the Font object.

Syntax

object.Size [= number]

The parts of the Size property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
number A numeric expression specifying the size of the font in points.

Remarks

Use this property to format text in the font size you want. The default font size is determined by the operating system. To change the default, specify the size of the font in points. The maximum value for the Size property is 2048 points.

The Font object is not directly available at design time. Instead, set the Size property by selecting a control's Font property in the Properties window and clicking the Properties button. In the Size box of the Font dialog box, select the size you want. At run time, however, set Size directly by specifying its setting for the Font object.