• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Excel vba code to automate IE.

Theexpat

New Member
Hi guys.
I post this question in vba express but i did not find answer.
I have the below code that supposed to log to a website that requires a pw only.
But it doesnt work.
Sub OpenCIR()

Set objIE = CreateObject("InternetExplorer.Application")
WebSite = "******"
With objIE
.Visible = True
.Navigate WebSite
**Do While .Busy Or .readyState <> READYSTATE_COMPLETE**
DoEvents
Loop
On Error Resume Next

Set Element = .document.getElementsById(" _id0:logon:pASSWORD")
Element.Item(0).Value ="hello123"

Do While .Busy Or .readyState <> READYSTATE_COMPLETE
DoEvents
Loop

End With

End Sub
Here is the html code for the web page pw part.

<div class="logoninput">
<input type="password" id="_id0:logon:pASSWORD" name="_id0:logon:pASSWORD">
</div>


Please help i think the issue only with the id part.
And what the colons means in the id



POST MOVED

.
 
Last edited by a moderator:
Back
Top