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

Columns Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.