IHTMLTableCol Object

Microsoft FrontPage Visual Basic

IHTMLTableCol Object

IHTMLTableCol

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

Using the IHTMLTableCol object

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

    Dim objTable As IHTMLTable
Dim objCol As IHTMLTableCol

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