HTML Dropdown List - No 'Options' or 'Selected' or 'SelectedIndex'

jpstory

Board Regular
Joined
Dec 17, 2010
Messages
118
Hi All

I am trying to automate running a query on a website by inputing/select multiple parameters.

One of the parameters is to select an option from a dropdown list.

However, when browsing through the dropdown object's properties (HTMLInputElement) in VBA editor's Local window, I can't find Options, Selected or SelectedIndex to modify the selection.

I can input the desired value by setting the input value, but it is not aceepted/recognized upon querying.
Here dropdown object has the following events and I have try all of them in the following order, here are the results:

onblur - works
onfocus - works
onkeydown - did not work
onkeyup - did not work
o n c l i c k - pull up the list


Do I have to fire these events in certain order in order to get it to work? Am I missing anything here?


here is the code for the dropdown:


<div class="v-gridlayout-slot" style="left: 0px; top: 147px; padding-top: 17px;">
<div class="v-caption" id="gwt-uid-240" style="left: 0px; top: 0px; position: absolute;" for="gwt-uid-241">
<div class="v-captiontext">Product Typediv>
</div>
<div class="v-filterselect v-widget v-has-width" role="combobox" style="width: 400px;">
<input tabindex="0" class="v-filterselect-input" id="gwt-uid-241" style="width: 100%;" type="text" loop="1">input>
<div class="v-filterselect-button" role="button" aria-hidden="true"></div>
</div>
</div>
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top