VBA Selecting A Value From Dropdown Box On A Webpage
enter image description hereupdatedI'm trying to use VBA to log me into a secure webpage, then navigate to a webpage where I need to select a value from a drop down box before sear
Solution 1:
Try
.document.querySelector("Select[name=District] option[value=A]").Selected = True
The Select[name=District] option[value=A] is a CSS selector. It looks for elements with option tag with attribute value whose value = A and with a parent element whose tag is Select which has attribute name with value District. The querySelector method of document applies the selector.
Post a Comment for "VBA Selecting A Value From Dropdown Box On A Webpage"