Partager via


Columns.Width Property (Word)

Returns or sets the width of the specified columns, in points. Read/write Long.

Syntax

expression .Width

expression A variable that represents a Columns collection.

Example

This example creates a 5x5 table in a new document and then sets the width of all the columns in the table to 1.5 inches.

Dim objDoc As Document 
Dim objTable As Table 
 
Set objDoc = ActiveDocument 
Set objTable = objDoc.Tables.Add(Range:=Selection.Range, _ 
 NumRows:=5, NumColumns:=5) 
objTable.Columns.Width = InchesToPoints(1.5)

See Also

Concepts

Columns Object Members

Columns Collection Object