IHTMLTable Object

Microsoft FrontPage Visual Basic

IHTMLTable Object

IHTMLTable Multiple objects

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

Using the IHTMLTable object

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

    Dim objTable As IHTMLTable

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

To change the properties for the TFOOT, THEAD, TR, and TD elements, use the IHTMLTableSection, IHTMLTableRow, IHTMLTableCol, and IHTMLTableCell objects.