IHTMLTableCaption Object

Microsoft FrontPage Visual Basic

IHTMLTableCaption Object

Multiple objects IHTMLTableCaption

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

Using the IHTMLTableCaption object

Use the caption property of the IHTMLTable object to return an IHTMLTableCaption object that represents the CAPTION element for that table. The following example accesses the first CAPTION element in the first TABLE element in the active document.

    Dim objTable As IHTMLTable
Dim objCaption As IHTMLTableCaption

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