Share via


tBodies Property

Returns an IHTMLElementCollection collection that represents the collection of TBODY elements inside a TABLE element.

expression.tBodies

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Remarks

Use the FPHTMLTableSection object to return a single TBODY element.

Example

The following example sets the background color for the first TBODY element inside the first TABLE element in the active document.

Dim objTable As FPHTMLTable
Dim objTBodies As IHTMLElementCollection
Dim objBody As FPHTMLTableSection

Set objTable = ActiveDocument.all.tags("table").Item(0)
Set objTBodies = objTable.tBodies
Set objBody = objTBodies.Item(0)

objBody.bgColor = "red"

Applies to | FPHTMLTable Object | IHTMLTable Object