Share via


Columns.DistributeWidth Method

Word Developer Reference

Adjusts the width of the specified columns so that they are equal.

Syntax

expression.DistributeWidth

expression   Required. A variable that represents a Columns collection.

Example

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

Visual Basic for Applications
  ActiveDocument.Tables(1).Columns.DistributeWidth

This example adjusts the height of the selected cells.

Visual Basic for Applications
  If Selection.Cells.Count >= 2 Then 
    Selection.Cells.DistributeWidth
End If

See Also