hello all,
I am trying to change the selection in a html dropdown menu within a form with vba in order to collect information on the next page.
here is what I have at the moment.
portfolioView is the name of the form and pv_id is the name of the dropdown menu. Here is the html code that concerns my situation.
Thanks for your help
I am trying to change the selection in a html dropdown menu within a form with vba in order to collect information on the next page.
here is what I have at the moment.
Code:
With appIE
' change page
.Document.forms("portfolioView").getElementsByTagName("pv_id") = "2"
.Quit
End With
HTML:
<select name="pv_id" size="1" onchange="submit()">
<option value="5">ENERGY STAR Recognition</option>
<option value="19">Performance: Data Centers</option>
<option value="4">Performance: Environmental</option>
<option value="3">Performance: Financial</option>
<option value="14">Performance: GHG Emissions</option>
<option value="8">Performance: Rating/Improvement</option>
<option value="12">Performance: Targets</option>
<option value="9">Performance: Water Use</option>
<option value="17">Performance: Water/Wastewater Treatment Facilities</option>
<option value="2">Summary: Energy Use</option>
<option value="1" selected="selected">Summary: Facilities</option>
</select></td>
Thanks for your help