Font Object
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
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