Hi all,
Thanks for taking time to read this through. Will appreciate any help.
I am trying to pick a date on drop-down list on this page, and view results through VBA:
Page URL: 4D - Results
I have been able to change value in drop-down but still tables are not reflecting selected drop-down value.
My code (so far) is:
Please help.
Regards!
Vikas
Thanks for taking time to read this through. Will appreciate any help.
I am trying to pick a date on drop-down list on this page, and view results through VBA:
Page URL: 4D - Results
I have been able to change value in drop-down but still tables are not reflecting selected drop-down value.
My code (so far) is:
Code:
Dim IE As InternetExplorer
Dim doc As HTMLDocument
Dim LoginForm As HTMLFormElement
Dim UserNameInputBox As HTMLInputElement
Dim cURL As String
Set IE = New InternetExplorer
cURL = "http://www.singaporepools.com.sg/en/lo/ldc/Pages/4d_result.aspx"
IE.Visible = True
IE.navigate cURL
'Wait for initial page to load
Do While IE.readyState <> READYSTATE_COMPLETE Or IE.Busy: DoEvents: Loop
Set doc = IE.document
Set UserNameInputBox = doc.getElementById("drawDropDownList")
UserNameInputBox.selectedIndex = 11 'working. able t o set drop-down value'
doc.forms("aspnetForm").FireEvent ("onsubmit") 'not working.
Please help.
Regards!
Vikas