IHTMLOListElement Object

Microsoft FrontPage Visual Basic

IHTMLOListElement Object

IHTMLOListElement

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

Using the IHTMLOListElement Object

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

    Dim objList As IHTMLOListElement

Set objList = ActiveDocument.all.tags("ol").Item(0)