+ Reply to Thread
Results 1 to 6 of 6

Debugging: How do you enter a Stop command in your code?

  1. #1
    Forum Contributor
    Join Date
    12-15-2009
    Location
    Leesburg, VA
    MS-Off Ver
    Excel 365
    Posts
    172

    Debugging: How do you enter a Stop command in your code?

    I don't see it in the debug menu. Is there are keyboard short cut?

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Debugging: How do you enter a Stop command in your code?

    Just type Stop one line above where you want to pause the execution of the code.

    Is this what you mean?

  3. #3
    Forum Contributor
    Join Date
    12-15-2009
    Location
    Leesburg, VA
    MS-Off Ver
    Excel 365
    Posts
    172

    Re: Debugging: How do you enter a Stop command in your code?

    Quote Originally Posted by jindon View Post
    Just type Stop one line above where you want to pause the execution of the code.

    Is this what you mean?
    That looks to be it. Thank you sir.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Debugging: How do you enter a Stop command in your code?

    Alternatively, use

    Please Login or Register  to view this content.
    This can be used to conditionally pause execution based on the results of a calculation

    Please Login or Register  to view this content.
    If the result is False, then the code will pause.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,528

    Re: Debugging: How do you enter a Stop command in your code?

    You also have the option of setting a breakpoint http://office.microsoft.com/en-us/su...819.aspx?CTT=1
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Debugging: How do you enter a Stop command in your code?

    Use F9 to toggle breakpoints and F8 to step through the code.
    If posting code please use code tags, see here.

+ 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] Create custom command to stop code at any point
    By sczerniak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2013, 03:12 PM
  2. Replies: 2
    Last Post: 07-13-2013, 01:10 AM
  3. my workbook is stop debugging and make excel not responding
    By suny100 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2011, 12:58 PM
  4. Help with debugging a VBA code
    By soniajaswal in forum Excel General
    Replies: 3
    Last Post: 01-21-2011, 09:28 AM
  5. Stop Debugging !!
    By Phil Osman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-29-2005, 07:06 PM

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