change time to web not busy

Posted on 2006-04-26
Medium Priority
Last Modified: 2010-05-01
I have this button called login and it goes my email and logs me in
I dont want to set time what I want instead is when the browser
is not busy, how can I do that?
    Call WebBrowser1.Navigate("http://hotmail.com")
    For i = 1 To 50
        Sleep (100)
    With WebBrowser1.Document
         Set txtLogin = .GetElementsByName("email")(0)
         Set txtPasswd = .GetElementsByName("pass")(0)
         txtLogin.Value = "email@ema.com"
         txtPasswd.Value = "pass"
    End With
    For i = 1 To 50
        Sleep (100)
Question by:aplelois
1 Comment
LVL 29

Accepted Solution

nffvrxqgrcfqvvc earned 2000 total points
ID: 16544480

While (WebBrowser1.ReadyState <> READYSTATE_COMPLETE)

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month15 days, 16 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question