FPHTMLTableCol Object

Microsoft FrontPage Visual Basic

FPHTMLTableCol Object

FPHTMLTableCol Multiple objects

Represents a COL element in an HTML document. See also the IHTMLTableCol object.

Using the FPHTMLTableCol 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 FPHTMLTableCol 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 FPHTMLTable
Dim objCol As FPHTMLTableCol

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