FPHTMLLabelElement Object

Microsoft FrontPage Visual Basic

FPHTMLLabelElement Object

FPHTMLLabelElement Multiple objects

Represents a LABEL element in an HTML document. See also the IHTMLLabelElement object.

Using the FPHTMLLabelElement Object

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

    Dim objLabel As FPHTMLLabelElement

Set objLabel = ActiveDocument.all.tags("label").Item(0)