Hi Guys,
Tried a lot but I can't figure out how to login on this website.
Could someone please help me out ?
I want to scrape some data from a website but I couldn't even login with VBA code because it's keep saying "Object doens't support this property or Method" with this code:
Or with these code I got : "Object variable or With block variable not set"
Tried a lot but I can't figure out how to login on this website.
Could someone please help me out ?
I want to scrape some data from a website but I couldn't even login with VBA code because it's keep saying "Object doens't support this property or Method" with this code:
Code:
Sub GetPrintStats()
Set IE = CreateObject("InternetExplorer.application")
Set IE = GetObject("new:{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}")
With IE
.Visible = True
.navigate ("http://10.209.58.26/?MAIN=LOGIN")
End With
While IE.Busy: DoEvents: Wend
Set doc = IE.document
doc.getElementsByTagName("input")(0).Value = "xx"
End Sub
Or with these code I got : "Object variable or With block variable not set"
Code:
Sub GetPrintStats()
Set IE = CreateObject("InternetExplorer.application")
Set IE = GetObject("new:{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}")
With IE
.Visible = True
.navigate ("http://10.209.58.26/?MAIN=LOGIN")
End With
While IE.Busy: DoEvents: Wend
Set doc = IE.document
doc.getElementById("USERNAME").Value = "xx"
End Sub