+ Reply to Thread
Results 1 to 2 of 2

IE.documnt.readystate not working

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    3

    IE.documnt.readystate not working

    For some reason my code fails at this step:

    Please Login or Register  to view this content.
    What I'm trying to do is make sure the webpage loads completely before continuing. So the whole bit is:

    Please Login or Register  to view this content.
    I get runtime error 438, Object doesn't support this property or method

    The weird thing to me is, when I am stopped on this step because of the error, in the immediate window, when I query the property of ie.document.readystate (? IE.document.readystate), I get "complete" returned, so it's not like this is an inapplicable property of ie.document. I think that perhaps when the page is loading and is NOT complete, the error happens, then by the time I check in the immediate window, is IS complete, but that doesn't explain why I get this error when it's not complete.

    I tried using "4" instead of "complete", and also using either or, but I keep getting the error when I get to this point and the page hasn't loaded.

    here's where I dim and set stuff up at top of the module, in case that might be where there's a problem:

    Please Login or Register  to view this content.
    Does anyone know why i get this error, when the object clearly DOES support this method, since I can get "complete" returned in immediate window? Failing that, is there a better way to make sure an Internet Explorer page is completely loaded before continuing with code?

    This also is not working:

    Please Login or Register  to view this content.

    Thanks for any help

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: IE.documnt.readystate not working

    Please Login or Register  to view this content.
    OR

    Please Login or Register  to view this content.
    Last edited by AB33; 03-06-2018 at 04:54 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Check ReadyState after click not working
    By drflgd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2017, 11:21 AM
  2. Stuck... even after website loaded - Loop Until IE.ReadyState = READYSTATE_COMPLETE
    By Malkavian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2016, 03:13 PM
  3. [SOLVED] Automated Internet - Alternatives to Busy and ReadyState?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2015, 01:26 AM
  4. Copy data from word documnt to excel sheet
    By saurabhlotankar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2013, 04:19 AM
  5. Fill Form with VBA. Problems with .busy .readyState
    By Zheno in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2012, 03:19 AM
  6. Internet Explorer Automation from Excel and the ReadyState propert
    By rMartyr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2006, 06:50 PM
  7. readystate for an IE window that was not created in Excel
    By Necessitysslave in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2006, 06:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1