<select name="StrengthUnitOfMeasure" id="StrengthUnitOfMeasure"><option title="" value=""></option>
<option title="mg" value="adf1389d-7aa1-df11-ba1c-0024818f4b0a">%</option>
<option title="ml" value="7b254ea1-6490-e411-9816-0050568d6f80">500</option>
<option title="mcg" value="8f254ea1-6490-e411-9816-0050568d6f80">6000</option>
<option title="liters" value="5de449f0-a0bb-e411-b554-0050568d6f80">Actuation</option>
<option title="gallons" value="57424f26-a2c5-e311-9216-005056042544">APP(S)</option>
<option title="lbs" value="b1fbdd1c-72a6-e411-b4c9-0050568d6f80">BG</option>
</select>
I have a spreadsheet that has values like mcg, lbs that I am using to populate the web page drop down list. I can use the selected index command to change this drop down box but I'm not sure how to relate the values like mcg to the correct index value.
Code: Select all
wb.document.getElementById("StrengthUnitOfMeasure").selectedIndex := 2