flyte
New Member
Hi Guys,
I have googled and I find no real joy in regard to this. Is it possible to submit a form and then scrape the results if the format is Java Script? Using VBA?
I need to get data from a web page:
http://education.qld.gov.au/wcis/Enrolment/ListStateSecEnrolments.aspx?CtrCd=0330
I have the following code:
My code isn't submitting the form to get the results page I want and I cant scrape the result page anyway due to the Java Script.
I am trying to do this from work and am not able to download add-ins, so if there is an answer to my question it would need to be VBA only.
Thanks for your thoughts on this matter.
Natasha
I have googled and I find no real joy in regard to this. Is it possible to submit a form and then scrape the results if the format is Java Script? Using VBA?
I need to get data from a web page:
http://education.qld.gov.au/wcis/Enrolment/ListStateSecEnrolments.aspx?CtrCd=0330
I have the following code:
Code:
Sub clickformbutton()
Dim ie As Object
Dim Form As Variant, Button As Variant
Set ie = CreateObject("InternetExplorer.Application")
With ie
.Visible = True
.navigate ("http://education.qld.gov.au/wcis/Enrolment/ListStateSecEnrolments.aspx?CtrCd=0330")
While ie.ReadyState <> 4
DoEvents
Wend
Set Form = ie.document.getelementsbyTagname("form")
Set Button = Form(0).submit
Form(0).submit
End With
End Sub
My code isn't submitting the form to get the results page I want and I cant scrape the result page anyway due to the Java Script.
I am trying to do this from work and am not able to download add-ins, so if there is an answer to my question it would need to be VBA only.
Thanks for your thoughts on this matter.
Natasha