runtime error 91
Hi,
could you help me, plese:
I have a code,whitch makes autologin. But this code is function only once by run. Twice and more is runtime error 91.
Here is my code:
Private Sub Main()
Dim ie As Object
Dim adresa
adresa = "http://px2.xchat.centrum.cz/~guest~/modchat?op=homepage" 'url,where is login form
Set ie = CreateObject("InternetExplorer.Application")
ie.navigate adresa
Do While ie.Busy
DoEvents
Loop
ie.Visible = True
ie.Document.All("u_name").Value = "a_nick" 'without this line of code makes always
'Me.Hide
Set ie = Nothing
End Sub
|