webbots Property

Microsoft FrontPage Visual Basic

webbots Property

Returns an IHTMLElementCollection collection that represents the Microsoft FrontPage components inserted into the document.

expression.webbots

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

Example

The following example creates an object variable for the FrontPage components in the active document, and then uses the Item method to access the component named "calendar". This example assumes you have at least one FrontPage component in the active document with an id attribute of "calendar".

    Dim objFPComponents As IHTMLElementCollection
Dim objCalendar As IHTMLElement

Set objFPComponents = ActiveDocument.webbots
Set objCalendar = objFPComponents.Item("calendar")