Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Posts
    233

    Unanswered: Stop all code from executing

    I have a very large amt of code to run, but would like to at anytime completely stop the code.

    I dont want to check after each sub or function is the away to do this with a vba keyword or work around?

  2. #2
    Join Date
    May 2009
    Posts
    258
    Ctrl-Break is the keystroke you are looking for. If you want it to be in the logic, just put Stop where you want a breakpoint.

    Ax

  3. #3
    Join Date
    Oct 2003
    Posts
    233
    Quote Originally Posted by Ax238
    Ctrl-Break is the keystroke you are looking for. If you want it to be in the logic, just put Stop where you want a breakpoint.

    Ax

    stop will stop executing at that line i want to completely end dont exit the function and dont continue from the routine that called the function. Basicly die lol

  4. #4
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    511
    The keyword you are looking for is End.
    Code:
    End
    Note that, unlike the Stop statement, this will cause a state loss event, so any static variables, objects etc.. you have created will be toast.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •