Edit

Share via


Selection.InsertRowsAbove method (Word)

Inserts rows above the current selection.

Syntax

expression. InsertRowsAbove

expression Required. A variable that represents a Selection object.

Remarks

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

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

See also

Selection 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.