Remarks

The ListRows collection contains all the rows in a list object.

Use the property of the object to return a ListRows collection.

Example

The following example adds a new ListRow object to the default ListObject object in the first worksheet of the active workbook. Because no position is specified, a new row is added to the end of the table.

Visual Basic for Applications
Dim wrksht As Worksheet Dim oListRow As ListRow Set wrksht = ActiveWorkbook.Worksheets("Sheet1") Set oListRow = wrksht.ListObjects(1).ListRows.Add 

See also: