Font Object

Microsoft Office Web Components Visual Basic

Font Object

Multiple objects Font

Contains the font attributes (font name, font size, color, and so on) for an object.

Using the Font object

Use the Font property to return a Font object.

The following example formats cells A1:C5 as bold.

Spreadsheet1.ActiveSheet.Range("A1:A5").Font.Bold = True