hi,
the below coding is part of an IE automation script.
if the coding is run through it doesnt login, if I step through the coding it logs in, I can't understand why it is doing this.
i have put a applicatio wait in front off the submit line and still no difference.
anyone got any ideas why.
Rob.
Hope this is of use, Rob.![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)
the below coding is part of an IE automation script.
Code:
If objie Is Nothing Then
'page isn't open yet
'create new IE instance
Set objie = GetNewIE
'make IE window visible
With objie
Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
.Visible = True
With .Document.forms("frmLogin")
.sUserName.Value = "username"
.sPassword.Value = "password"
.submit.Click
End With
End With
'load page
If LoadWebPage(objie, myPageURL) = False Then
'page wasn't loaded
MsgBox "Couldn't open page"
Exit Sub
End If
End If
if the coding is run through it doesnt login, if I step through the coding it logs in, I can't understand why it is doing this.
i have put a applicatio wait in front off the submit line and still no difference.
anyone got any ideas why.
Rob.
Hope this is of use, Rob.
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)