Hi!
I got a question with VBA (bit of a novice)
I've written the following code:
however i don't the .document bit and how to update this to log myself onto the website. 77
Can someone please explain this too me
I got a question with VBA (bit of a novice)
I've written the following code:
Code:
Sub test() Dim IE As Object
Set IE = CreateObject("InternetExplorer.application")
With IE
.Visible = True
.navigate ("secure website")
While .Busy Or .readyState <> 4: DoEvents: Wend
.Document.getElementById("User name").Focus
.Document.getElementById("User name").Value = "my login"
.Document.getElementById("Password").Focus
.Document.getElementById("Password").Value = "My Pword"
.Document.all("Login").Click
While .Busy Or .readyState <> 4: DoEvents: Wend
Debug.Print .LocationURL
End With
End Sub
however i don't the .document bit and how to update this to log myself onto the website. 77
Can someone please explain this too me