Rows.Alignment Property

Word Developer Reference

Returns or sets a WdRowAlignment constant that represents the alignment for the specified rows. Read/write.

Syntax

expression.Alignment

expression   Required. A variable that represents a Rows collection.

Example

This example centers all the rows in the first table of the active document.

Visual Basic for Applications
  Sub CenterRows()
    ActiveDocument.Tables(1).Rows _
        .Alignment = wdAlignRowCenter
End Sub

See Also