Font.FontStyle Property (Excel)

Returns or sets the font style. Read/write String.

Syntax

expression .FontStyle

expression A variable that represents a Font object.

Remarks

Changing this property may affect other Font properties (such as Bold and Italic).

Example

This example sets the font style for cell A1 on Sheet1 to bold and italic.

Worksheets("Sheet1").Range("A1").Font.FontStyle = "Bold Italic"

See Also

Concepts

Font Object

Font Object Members