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). Acceptable values are Regular, Italic, Bold, and Bold 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

Font Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.