Hi guys, I just want to break this code to pieces, without using the with statements. I have having trouble about the second with statement in my given code...can someone give me an explanation. I know that this code is perfect for automating this site to auto log in.. thanks in advance
Sub ExcelForum_LogIn()
With CreateObject("InternetExplorer.Application")
.Visible = True
.Navigate ("http://www.excelforum.com/")
Do While .ReadyState <> 4 Or .Busy = True
DoEvents
Loop
With .Document.getElementByID("navbar_loginform")
.Elements("vb_login_username").Value = "myname"
.Elements("navbar_password").Value = "mypassword"
.Submit
End With
End With
End Sub
Bookmarks