Columns.SetWidth Method (Word)

Sets the width of columns in a table.

Syntax

expression .SetWidth(ColumnWidth, RulerStyle)

expression Required. A variable that represents a Columns collection.

Parameters

Name

Required/Optional

Data Type

Description

ColumnWidth

Required

Single

The width of the specified column or columns, in points.

RulerStyle

Required

WdRulerStyle

Controls the way Word adjusts cell widths.

Remarks

The WdRulerStyle behavior described above applies to left-aligned tables. The WdRulerStyle behavior for center- and right-aligned tables can be unexpected; in these cases, the SetWidth method should be used with care.

See Also

Concepts

Columns Object Members

Columns Collection Object