Hey guys,
I'm trying to select a specific value (Month to Month) in combobox in an IE.
Here is the HTML code in website:
<select name="agreementTerm" id="agreementTerm" style="display: none;">
<option value="-1"></option>
<option value="9">Month to Month</option>
<option value="10">2 year agreement</option>
<option value="12">Easy Pay</option></select>
I tried :
Set optionMonthly = IE.document.getElementbyid("agreementTerm")
OptionMonthly.SelectedIndex = 1
'Or even
OptionMonthly.SelectedIndex = 9
'Or even
OptionMonthly.value = "Month to Month"
If someone could come up with a solution... I'd appreciate that!
Thank you for your help
I'm trying to select a specific value (Month to Month) in combobox in an IE.
Here is the HTML code in website:
<select name="agreementTerm" id="agreementTerm" style="display: none;">
<option value="-1"></option>
<option value="9">Month to Month</option>
<option value="10">2 year agreement</option>
<option value="12">Easy Pay</option></select>
I tried :
Set optionMonthly = IE.document.getElementbyid("agreementTerm")
OptionMonthly.SelectedIndex = 1
'Or even
OptionMonthly.SelectedIndex = 9
'Or even
OptionMonthly.value = "Month to Month"
If someone could come up with a solution... I'd appreciate that!
Thank you for your help