+ Reply to Thread
Results 1 to 4 of 4

Loop Question

  1. #1
    Registered User
    Join Date
    07-11-2009
    Location
    -
    MS-Off Ver
    Excel 2003
    Posts
    46

    Loop Question

    I have cells in A1 - A20. I have an excel loop that takes each cell from A1 - A20 looks up information on the internet and pastes data in the corresponding row in B1 - B20. I would like to run this loop continuously because there are timely fluctuations in this data procured from the internet. If i run this loop continuously it will just overwrite the old data, I would like to preserve the old data. What i was wondering if after the loop ends copy A1 - A20 to A21 - A40, the loop starts and looks up information on the internet for A1 - A20 but instead pastes it in the corresponding row in B21 - 40, and once the loop is over. Copy A1 - A20 to A41 - A60, loop starts again and looks up information for A1 - A20 and pastes it in the corresponding row in B41 - B60, and so on I would like to run to have this repeat about 2000+ times. Would appreciate help.

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Loop Question

    Hi
    If you can share the code you are using to download from the net, appropriate changes can be made to append data after each cycle.
    Ravi

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Loop Question

    You can't do it more than 254 times since there are only 256 columns in Excel 2003 as shown in your profile.

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Loop Question

    If he went down rows instead of across columns, though (as he suggested originally), he could easily handle 3000+ iterations.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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