InsertRowsAbove Method

Microsoft Word Visual Basic

Inserts rows above the current selection.

expression.InsertRowsAbove

expression    Required. An expression that returns a Selection object.

Remarks

Microsoft Word inserts as many rows as there are in the current selection.

In order to use this method, the current selection must be in a table.

Example

This example selects the second row in the first table and inserts a new row above it.

ActiveDocument.Tables(1).Rows(2).Select
Selection.InsertRowsAbove