createCaption Method
Returns an IHTMLTableCaption object that represents a CAPTION element added to a TABLE element.
expression.createCaption
*expression * Required. An expression that returns one of the objects in the Applies To list.
Remarks
Use the deleteCaption method to remove a caption from a TABLE element.
Example
The following example creates a new CAPTION element in the first TABLE element in the active document.
Dim objTable As FPHTMLTable
Dim objCaption As FPHTMLTableCaption
Set objTable = ActiveDocument.all.tags("table").Item(0)
Set objCaption = objTable.createCaption
Applies to | FPHTMLTable Object | IHTMLTable Object