Italic Property

Microsoft Office Web Components Visual Basic

and PivotFont objects; read/write Variant for the Font object (returns Null if some portions of the text are italic and some are not). Use the IsNull function to determine whether the return value is Null.

expression.Italic

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets the font to italic for the contents of column B.

Spreadsheet1.Columns(2).Font.Italic = True