Compartilhar via


Font.FontStyle Property

Excel Developer Reference

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.

Visual Basic for Applications
  Worksheets("Sheet1").Range("A1").Font.FontStyle = "Bold Italic"

See Also