how to select a value option from a dropdown list on a webpage using vba

IE3.getElementById("edit-multiple-form")

This should return the select HTML element. Then you can further narrow by:

Set elemSelect = IE3.getElementById("edit-multiple-form")
Set elemOption = elemSelect.getElementsByTagName("option")

So then you can loop through (for i=0 to elemOption.length-1). Please note that getElementById does not have s in it, because it always returns exactly 1 item. Also, getElementsByClass is not a valid method, use getElementsByClassName instead. The list of available methods are listed here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top