Select an option from a dropdown using vba

  • I have the following html code:



    I'm trying to select from one of the values in the dropdown. I've tried different codes but I can't seem to make it work. I've tried setting the values, triggering events, looping the options, etc. I'm not sure what I'm doing wrong. I was able to populate the other fields like text boxes in the page using the usual getElementsByName and using obj.Value = "Sample" but I'm having a hard time if it's a dropdown.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!