IHTMLTableRow Object

Microsoft FrontPage Visual Basic

IHTMLTableRow Object

IHTMLTableRow IHTMLElementCollection

Represents a TR element in an HTML document. The IHTMLTableRow object provides access to a limited number of properties and methods related to the TR element. For access to all properties and methods, use the FPHTMLTableRow object.

Using the IHTMLTableRow object

Use the rows property to return an IHTMLElementCollection collection that represents a collection of all the TR elements in a table. Use the Item method to return an IHTMLTableRow object that accesses a specific TR element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first TR element in the first table in the active document.

    Dim objTable As IHTMLTable
Dim objRow As IHTMLTableRow

Set objTable = ActiveDocument.all.tags("table").Item(0)
Set objRow = objTable.rows(0)