+ Reply to Thread
Results 1 to 3 of 3

Macro Loop Broken. Detects Max but doesn't continue loop

  1. #1
    Registered User
    Join Date
    09-27-2010
    Location
    Slough, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Talking Macro Loop Broken. Detects Max but doesn't continue loop

    a friend kindly wrote a code for me that take data from one spreadsheet and lists it in set categories in another by fiscal years and quarters.

    the code detects maxium of the 'FYs'-column in one sheet and then runs the loop from the minimum to the maxium.

    the highest number in the FY-column is 2012, but the loop stops there even though there's data to copy to the other sheet, and that's where I need help. problem is that i need this asap

    Here's the code:

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544

    Re: Macro Loop Broken. Detects Max but doesn't continue loop

    What error do you get ?

    You can follow the code in the Visual Basic Editor. Which line is marked yellow when you click 'Debug' ?
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  3. #3
    Registered User
    Join Date
    09-27-2010
    Location
    Slough, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Macro Loop Broken. Detects Max but doesn't continue loop

    i just fixed it yay!

    i think the loop stopped because the maximum was 2012 so it stopped because it said do until it's gotten to the maximum.

    so I added a +1 to that yaaay

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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