title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Columns.SetWidth method (Word) |
vbawd10.chm155910345 |
|
|
42b9c3ce-5743-5143-f8e6-80bcbc0e206d |
06/08/2017 |
medium |
Sets the width of columns in a table.
expression. SetWidth
( _ColumnWidth_
, _RulerStyle_
)
expression Required. A variable that represents a 'Columns' collection.
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. |
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.
[!includeSupport and feedback]