DistributeWidth Method

Applies To

Cells collection object, Columns collection object.

Description

Adjusts the width of the specified columns or cells so that they're equal.

Syntax

expression.DistributeWidth

expression   An expression that returns a Cells or Columns object.

See Also

DistributeHeight method, SetWidth method, Width property, WidthRule property.

Example

This example adjusts the width of the columns in the first table in the active document so that they're equal.

ActiveDocument.Tables(1).Columns.DistributeWidth
This example adjusts the height of the selected cells.

If Selection.Cells.Count >= 2 Then 
    Selection.Cells.DistributeWidth
End If