+ Reply to Thread
Results 1 to 6 of 6

Data being copied from website while page still loading

  1. #1
    Registered User
    Join Date
    04-13-2004
    Posts
    28

    Data being copied from website while page still loading

    I use a URL to get information from a webpage, however the code below is copying the webpage before it's fully loaded. I've tried various versions of the Readystate loop, but sometuimes the page is slow to load, however it's still copying the webpage data. I'm looking for help to delay the copy of the webpage until all the data is available.

    HTML Code: 
    Full sub below:

    HTML Code: 

  2. #2
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Data being copied from website while page still loading

    Hi

    Replace this code :

    Please Login or Register  to view this content.
    with this code:

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 06-28-2015 at 03:32 AM.

  3. #3
    Registered User
    Join Date
    04-13-2004
    Posts
    28

    Re: Data being copied from website while page still loading

    Quote Originally Posted by excelliot View Post
    Hi

    Replace this code :

    Please Login or Register  to view this content.
    with this code:

    Please Login or Register  to view this content.
    The first URL loads quicker than the second one.

    https://fasttrack.grv.org.au/Dog/Form/1001120075

    https://fasttrack.grv.org.au/Dog/Form/1006270002




    I've tried that, doesn't work. There's a table that gets loaded, and a query, I'm assuming that has to load as well. The wheel doesn't stop spinning until the query is loaded. There's no set times per URL, so sometimes it copies the info I want, and then sometimes it doesn't.
    Last edited by JBeaucaire; 06-28-2015 at 03:33 AM.

  4. #4
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Data being copied from website while page still loading

    use this line before code which is copying data
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Data being copied from website while page still loading

    Also you can add this line instead wait before lines which copying data:

    Please Login or Register  to view this content.
    This is working..
    Last edited by JBeaucaire; 06-28-2015 at 03:33 AM.

  6. #6
    Registered User
    Join Date
    04-13-2004
    Posts
    28

    Re: Data being copied from website while page still loading

    Thanks for your help, but am getting the following error message

    Method 'Document'of Object ÍWebBrowser2' failed.

    Do I need to reference anything?
    Last edited by JBeaucaire; 06-28-2015 at 03:33 AM.

+ 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. Replies: 4
    Last Post: 07-02-2013, 02:41 PM
  2. [SOLVED] Editing data copied from a website
    By WE5T in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2013, 01:27 PM
  3. Retrieve Data From Website Page
    By dgkindy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2009, 07:50 AM
  4. [SOLVED] need to upload copied excel files to admin page on website
    By hank business market in forum Excel General
    Replies: 1
    Last Post: 05-21-2006, 08:50 PM
  5. [SOLVED] Loading website from userform
    By Danny Boy via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2006, 12:15 PM

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