Rows (collection)

<< Click to Display Table of Contents >>

Rows (collection)

Access paths:

Application à Documents à Item à Tables à Item à Rows

Application à ActiveDocument à Tables à Item à Rows

 1  Description

Rows is a collection of all table rows in a table. The individual elements of this collection are of the type Row.

 2  Access to the collection

Each table has exactly one instance of the Rows collection. It is accessed through the object pointer Rows of the table:

' Display the number of rows in the first table of the document

MsgBox tm.ActiveDocument.Tables(1).Rows.Count

 3  Properties, objects, collections and methods

Properties:

Count R/O

 

Objects:

Item Row (default object)

Application Application

Parent Table

Count (property, R/O)

Data type: Long

Returns the number of Row objects in the table – in other words: the number of rows in the table.

Item (pointer to object)

Data type: Object

Returns an individual Row object, i.e. an individual table row.

Which Row object you get depends on the numeric value that you pass to Item: 1 for the first row in the table, 2 for the second, etc.

Application (pointer to object)

Data type: Object

Returns the Application object.

Parent (pointer to object)

Data type: Object

Returns the parent object, i.e. an object of the type Table.