OptionElement Object

SharePoint Designer Developer Reference

Represenst an OPTION element in an HTML document.

Interfaces
This object implements the following interfaces

Remarks

Use the options property to return an ElementCollection collection that represents a collection of all the OPTION elements in a SELECT element. Use the Item method to return an OptionElement object that accesses a specific OPTION element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first OPTION element of the first SELECT element in the active document.

Visual Basic for Applications
Dim objSelect As SelectElement
Dim objOption As OptionElement
Set objSelect = ActiveDocument.all.tags("select").Item(0)
Set objOption = objSelect.Options(0)

See Also