title: An HTMLInputElement gets clicked, and an HTMLOptionElement gets
body: <p>I'm am trying to write vba code to fill out web-forms and click buttons for me. I am looping through the various <code>option</code> tags on the page to select the one I want. When I reach it, I want to select it, but I'm not sure of the syntax.</p>
  
  <pre><code>Dim htmlO As HTMLOptionElement
  For Each htmlO In Object.getElementByTagName("option")
      If Trim(htmlO.value) = "INS" Then
         htmlO.????  (click? select?)
          Exit For
      End If
  Next
  </code></pre>
  
  <p>Here is the HTML from the webpage:</p>
  
  <pre><code>&lt;select gtbfieldid="40" id="menu" name="pv_choice"&gt;
  &lt;option selected="selected" value="ZZZ"&gt;Choose Menu Option
  &lt;/option&gt;&lt;option value="BL_COMP"&gt;Blanket Companies
  &lt;/option&gt;&lt;option value="CARR_SEARCH"&gt;Carrier Search
  &lt;/option&gt;&lt;option value="PASSWORD"&gt;Change Password
  &lt;/option&gt;&lt;option value="FED_REG"&gt;FMCSA Register
  &lt;/option&gt;&lt;option value="FEEDBACK"&gt;Feedback
  &lt;/option&gt;&lt;option value="HOME"&gt;Home Page
  &lt;/option&gt;&lt;option value="INS"&gt;Insurance Filing
  &lt;/option&gt;&lt;option value="OOS_LIST"&gt;Out Of Service Carriers
  &lt;/option&gt;&lt;/select&gt;
  </code></pre>
  
  <p>I want to select the option "INS".</p>