IHTMLFieldSetElement Object

Microsoft FrontPage Visual Basic

IHTMLFieldSetElement Object

IHTMLFieldSetElement

Represents a FIELDSET element in an HTML document. The IHTMLFieldSetElement object provides access to a limited number of properties and methods related to the FIELDSET element. For access to additional properties and methods, use the FPHTMLFieldSetElement object.

Using the IHTMLFieldSetElement Object

Use the tags method to return an IHTMLElementCollection collection that represents a collection of all the FIELDSET elements in a document. Use the Item method to return an IHTMLFieldSetElement object that accesses a specific FIELDSET element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first FIELDSET element in the active document.

    Dim objFields As IHTMLElementCollection
Dim objField As IHTMLFieldSetElement

Set objFields = ActiveDocument.all.tags("fieldset")
Set objField = objFields.Item(0)