Share via


Range.ColumnWidth Property

Returns or sets the width of all columns in the specified range.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property ColumnWidth As Object
    Get
    Set
'Usage
Dim instance As Range
Dim value As Object

value = instance.ColumnWidth

instance.ColumnWidth = value
Object ColumnWidth { get; set; }

Property Value

Type: System.Object

Remarks

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.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace