Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.14 KB

Word.Columns.SetWidth.md

File metadata and controls

45 lines (26 loc) · 1.14 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Columns.SetWidth method (Word)
vbawd10.chm155910345
vbawd10.chm155910345
Word.Columns.SetWidth
42b9c3ce-5743-5143-f8e6-80bcbc0e206d
06/08/2017
medium

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

Columns Collection Object

[!includeSupport and feedback]