Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 987 Bytes

Excel.Application.StandardFont.md

File metadata and controls

46 lines (28 loc) · 987 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.StandardFont property (Excel)
vbaxl10.chm133210
vbaxl10.chm133210
Excel.Application.StandardFont
6bde5ec0-8868-fa00-52e3-b7387f39f56d
04/05/2019
medium

Application.StandardFont property (Excel)

Returns or sets the name of the standard font. Read/write String.

Syntax

expression.StandardFont

expression A variable that represents an Application object.

Remarks

If you change the standard font by using this property, the change doesn't take effect until you restart Microsoft Excel.

Example

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

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

[!includeSupport and feedback]