StandardFont Property

Applies To

Application Object.

Description

Returns or sets the standard font name as a string. Read-write.

Remarks

If you change the standard font using this property, the change does not take effect until you restart Microsoft Excel.

See Also

StandardFontSize Property.

Example

This example sets the standard font to Arial (in Windows) or Geneva (on the Macintosh).


If Application.OperatingSystem Like "*Macintosh*" Then
    Application.StandardFont = "Geneva"
Else
    Application.StandardFont = "Arial"
End If