Name

range.Columns([Index])

Synopsis

Returns a Range object that represents the columns in the specified range or the column specified by Index. The following code changes the font in column A of the specified range to bold type:

ActiveSheet.Range("A1:B4").Columns(1).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.