Edit

Share via


Selection.InsertRows(Object) Method

Definition

Inserts the specified number of new rows above the row that contains the selection.

public void InsertRows (ref object NumRows);
abstract member InsertRows : obj -> unit
Public Sub InsertRows (Optional ByRef NumRows As Object)

Parameters

NumRows
Object

Optional Object. The number of rows to be added.

Remarks

If the selection isn't in a table, an error occurs.

You can also insert rows by using the Add(Object) method of the Rows object.

Applies to