+ Reply to Thread
Results 1 to 6 of 6

stepping through a large loop

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    stepping through a large loop

    Hello. WHen I'm using F8 to step through code how can I make it run to a certain point in the code, so I don't have to run through the loop by hitting F8 a hundred times?

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

    Re: stepping through a large loop

    Put in the cursor on the line in which the code to jump in to and then

    CRTL+F8

    Or menu-debug-run to cursor.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: stepping through a large loop

    Alternately, place a Break Point on the Line of Code you wish to run to then run the Code.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: stepping through a large loop

    And you insert break points by selecting the row you want to stop at and pressing F9* and making the row go brown (highlight as a break point).

    *Or alternately by clicking in the left margin next to the row you want to toggle the break point for.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: stepping through a large loop

    Yes, simply Left click in the Margin to the left...
    Last edited by jaslake; 09-23-2015 at 06:37 PM.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: stepping through a large loop

    ammartin, this thread is marked SOLVED - just out of interest, which suggestion did you use - and did you perhaps give any feedback to the contributors in PM (I dont see anything here, thats why I asked)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Which is the quickest way to loop through large data sets
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-03-2013, 10:38 AM
  2. [SOLVED] Large macro loop times out
    By rossg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-03-2013, 07:00 PM
  3. Using variable to hide large group of Textboxes in VB using For-next Loop
    By t3623gl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2012, 01:04 PM
  4. Code for large loop
    By billybeane in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2012, 11:24 AM
  5. VBA to loop correlation between two arrays in large data set
    By amedhussaini in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2009, 08:20 PM
  6. [Solved] loop w/ variables to take turn one large spreadsheet into several...
    By green97sierra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2009, 04:21 AM
  7. Loop for a large data set
    By PChav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2008, 09:06 AM
  8. Large SumProduct Array -- original title:Loop Function
    By Divius in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-21-2007, 11:25 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