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.

Properties | Align Property | background Property | bgColor Property | border Property | borderColor Property | borderColorDark Property | borderColorLight Property | caption Property | cellPadding Property | cellSpacing Property | cols Property | dataPageSize Property | frame Property | height Property | onreadystatechange Property | ReadyState Property | rows Property | rules Property | tBodies Property | tFoot Property | tHead Property | width Property

Methods | createCaption Method | createTFoot Method | createTHead Method | deleteCaption Method | deleteRow Method | deleteTFoot Method | deleteTHead Method | insertRow Method | nextPage Method | previousPage Method | Refresh Method

Parent Objects

Child Objects | IHTMLElementCollection Object | IHTMLTableCaption Object | IHTMLTableSection Object