Share via


webParts Property

Returns an IHTMLElementCollection collection that represents the Web Parts in a document.

expression.webParts

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

Example

The following example accesses the first Web Part in the active document.

Dim objPart As FPHTMLWebPartElement

Set objPart = ActiveDocument.webParts.Item(0)

Applies to | FPHTMLDocument Object | FPHTMLWebPartZoneElement Object | IFPDocument Object | IHTMLWebPartZoneElement Object