I'm trying to automate the selection of comboboxes (drop down boxes) on a webpage using VBA. The basic code I've been using is:
The problem I have is that every dropdown box on the webpage has the exact same name. How do I differentiate these within VBA? Right now my code just updates the first one. Is there another way to identify which IE object is being automated? Like a listindex number for each object so I could tell it to updated the 3rd combobox, or something like that.
Code:
IE.document.getElementById("element_name").Value = "myValue"
The problem I have is that every dropdown box on the webpage has the exact same name. How do I differentiate these within VBA? Right now my code just updates the first one. Is there another way to identify which IE object is being automated? Like a listindex number for each object so I could tell it to updated the 3rd combobox, or something like that.