bensonsearch
Well-known Member
- Joined
- May 26, 2011
- Messages
- 844
Hi All,
I can not get the below to work, the logins are the right ones feel free to use as not a problem
the code never enters the info
I can not get the below to work, the logins are the right ones feel free to use as not a problem
Code:
Dim oHTML_Element As IHTMLElement
Dim sURL As String
'On Error GoTo Err_Clear
sURL = "[URL]http://www.abbyyonline.com/en/Account/LogOn[/URL]"
Set oBrowser = New InternetExplorer
oBrowser.Silent = True
'oBrowser.timeout = 60
oBrowser.navigate sURL
oBrowser.Visible = True
Do
' Wait till the Browser is loaded
Loop Until oBrowser.READYSTATE = READYSTATE_COMPLETE
Set HTMLDoc = oBrowser.document
ie.document.all.Item(UserName).Value = "[EMAIL="nickolas.benson@gordongotch.com.au"]nickolas.benson@gordongotch.com.au[/EMAIL]"
ie.document.all.Item("password").Value = "Benson14"
'HTMLDoc.all.Email.Value = "[EMAIL="nickolas.benson@gordongotch.com.au"]nickolas.benson@gordongotch.com.au[/EMAIL]"
'HTMLDoc.all.passwd.Value = "Benson14"
For Each oHTML_Element In HTMLDoc.getElementsByTagName("input")
If oHTML_Element.Type = "submit" Then oHTML_Element.Click: Exit For
Next
' oBrowser.Refresh ' Refresh If Needed
'Err_Clear:
'If Err <> 0 Then
'Debug.Assert Err = 0
'Err.Clear
'Resume Next
'End If
the code never enters the info