+ Reply to Thread
Results 1 to 8 of 8

Help me loop for endpoint for extracting the data from web

  1. #1
    Forum Contributor
    Join Date
    04-03-2011
    Location
    India
    MS-Off Ver
    Excel 2015
    Posts
    122

    Help me loop for endpoint for extracting the data from web

    Hi folks,

    Need quick help from your side on looping the endpoint of the URL (events_attended_id) needs starting from 1 to 100000

    In below case : events_attended_id=238

    http://inter.viewcentral.com/Events/...ttended_id=238


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    04-03-2011
    Location
    India
    MS-Off Ver
    Excel 2015
    Posts
    122

    Re: Help me loop for endpoint for extracting the data from web

    Please some one add the loop for >>>>> "events_attended_id=XXXX"

  3. #3
    Forum Contributor
    Join Date
    04-03-2011
    Location
    India
    MS-Off Ver
    Excel 2015
    Posts
    122

    Re: Help me loop for endpoint for extracting the data from web

    Attached which is almost completed but loop is left out
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-03-2011
    Location
    India
    MS-Off Ver
    Excel 2015
    Posts
    122

    Re: Help me loop for endpoint for extracting the data from web

    Can some one quickly fix the loop part.

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

    Re: Help me loop for endpoint for extracting the data from web

    You will get an error if the id does not exist.
    You need to adjust this line

    1 To 238

    change the 238 to what ever figure you want


    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    04-03-2011
    Location
    India
    MS-Off Ver
    Excel 2015
    Posts
    122

    Re: Help me loop for endpoint for extracting the data from web

    Thanks AB33,

    the error is showing because the tables values should be going one below the other. It's now printing on the same line.

    Can you please modify the code to print the tables in the sheet row-wise according to the loop created.

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

    Re: Help me loop for endpoint for extracting the data from web

    No, if I did not move the rows and columns count above the loop, the loop will always return row 1.
    The code errors on this line

    For Each Tr In .Rows

    which is nothing to do with the loop -I.
    Is it because the table you are trying to extract does not have rows?
    You can use your old code: all you need is just include my loop (Only 2 lines) in to your code.

    For i = 1 To 238

    next

  8. #8
    Forum Contributor
    Join Date
    04-03-2011
    Location
    India
    MS-Off Ver
    Excel 2015
    Posts
    122

    Re: Help me loop for endpoint for extracting the data from web

    Hi AB33,

    I tried but couldn't able to do as you said,

    I want the header in 2nd row and from 3rd row details of loop (i) from 1 to 238 needed.

+ 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. [SOLVED] Use of Loop Function for extracting data from Master sheet and creating seperate files
    By AnkitJain in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-17-2016, 04:10 AM
  2. [SOLVED] VBA to loop within a loop of multiple blocks of data (currentregion) ... Expert needed
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2016, 08:28 PM
  3. How to move endpoint in a graph
    By PeterRML in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-28-2014, 04:43 PM
  4. Extracting data from file in directory and extracting filename
    By brad999 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2014, 11:21 AM
  5. Replies: 0
    Last Post: 07-02-2013, 07:49 AM
  6. VBA syntax error on extracting loop
    By wolfram13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2013, 02:20 PM
  7. endpoint of line object to follow mouseover coordinates
    By chasesap in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2009, 08:21 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