How do I select an option from a dropdown menu and update the webpage.
Code:
then I navigate to a URL and I fetch the dropdown menu using html id and put value=my desired value
I successfully get the option. But, the website doesn't update? e.g. filling up other fields.
I believe some javascript needs to be run. How can i fix this using VBA?
EDIT:
Also posted here VBA HTML Object Internet Explorer automation
Code:
VBA Code:
Dim IE As New SHDocVw.InternetExplorer
Dim HTMLDoc As MSHTML.IHTMLDocument
then I navigate to a URL and I fetch the dropdown menu using html id and put value=my desired value
VBA Code:
HTMLDoc.getElementById("xyz").Value = "dropdown_option"
I successfully get the option. But, the website doesn't update? e.g. filling up other fields.
I believe some javascript needs to be run. How can i fix this using VBA?
EDIT:
Also posted here VBA HTML Object Internet Explorer automation
Last edited by a moderator: