Name

range.Font

Synopsis

Returns a Font object that lets you set Font properties for the specified range. The following code formats the cells in the specified range in bold type:

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

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.