ColumnWidth Property
Collapse the table of content
Expand the table of content

Range.ColumnWidth Property

Office 2007
Returns or sets the width of all columns in the specified range. Read/write Variant.



expression   A variable that represents a Range object.


One unit of column width is equal to the width of one character in the Normal style. For proportional fonts, the width of the character 0 (zero) is used.

Use the Width property to return the width of a column in points.

If all columns in the range have the same width, the ColumnWidth property returns the width. If columns in the range have different widths, this property returns null.


This example doubles the width of column A on Sheet1.

Visual Basic for Applications
With Worksheets("Sheet1").Columns("A")
    .ColumnWidth = .ColumnWidth * 2
End With

© 2016 Microsoft