+ Reply to Thread
Results 1 to 5 of 5

Fetch data on multiple page web

  1. #1
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Fetch data on multiple page web

    hi guys,

    i am trying to fetch data from a webpage which has multiple pages like 2000 pages which contains 25 rows and 16 columns in a table...can this be extracted in one sheet? I am using the code below but what I do is just simply duplicate the code and change the page range and sheet to where the data will be placed. like

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Notice that &start and Destination:=Range("a**")) changes...
    Please Login or Register  to view this content.
    I have like 200 of this repeated declarations except that the start and the range changes...can somebody help me simplify this procedures?

    Thanks in advance...
    Attached Files Attached Files
    Last edited by stoey; 11-23-2013 at 04:20 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Fetch data on multiple page web

    Hello stoey,

    Try this out. This goes from 0 to 2000 in steps of 25:0,25,50, 75, etc. The destination ranges are at "A1", "A26", "A51", etc. You can go beyond 2000 if you need to.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: Fetch data on multiple page web

    Hello Leith,

    First off is I would like to thank you on your response on this query. I tried the solution provided however I am receiving an error message Run-time error '424' Object required and is highlighting this part of the code:
    Please Login or Register  to view this content.
    any thoughts? thanks in advance again

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Fetch data on multiple page web

    Hello stoey,

    Oops! I forgot to prefix the QueryTablea.Add with the worksheet. It should be...
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: Fetch data on multiple page web

    Hi Leith,

    this code you have provided worked properly:
    Please Login or Register  to view this content.
    however, the output displays like seemingly "steps in a stair". I have changed 25 to 50 from this portion of the code
    Please Login or Register  to view this content.
    and they evetually displayed in a well proportioned manner like in an identical column but the thing is there are incomplete data that are being extracted. Though when using your original coding which has 25, it displays complete data but it just cannot display everything since the output is in a seemingly "steps in a stair". Sorry to be a pain here.

    Thanks,

    stoey

+ 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. Macro to loop through and fetch data from multiple websites
    By wishkey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2013, 05:37 AM
  2. Need to fetch a value based on multiple columns
    By kushmakarsharma in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-25-2012, 05:37 AM
  3. [SOLVED] Fetch Data: Return Multiple Rows based on Cell Content
    By pdreyest in forum Excel General
    Replies: 8
    Last Post: 09-24-2012, 12:43 AM
  4. Replies: 0
    Last Post: 03-29-2012, 08:06 AM
  5. [SOLVED] fetch data from excel page
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2006, 11:15 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