+ Reply to Thread
Results 1 to 8 of 8

Code Execution Has Been Interrupted

  1. #1
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Code Execution Has Been Interrupted

    Hello Gent's.

    I've been writing and running macros for some time. This one has me stumped. For some reason now the Runtime Error 18 - Code Execution has been interrupted continues to interfere with all my macros. Can someone shed some light on this?

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Code Execution Has Been Interrupted

    I have found if I have used Ctrl-Break to stop code from running, and then later press F5 to continue, that sometime it will stop on it's own with that error...the only way I could ever fix it is reboot my laptop....I haven't found an actual fix for it...
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

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

    Re: Code Execution Has Been Interrupted

    This might be caused by infinite loop, but the problem will not go away until you reboot your PC as Ernest's pointed out. This will get rid of any data stored in the RAM.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Code Execution Has Been Interrupted

    Thanks Guys. Rebooting solved the problem. Appreciate the help.

  5. #5
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Code Execution Has Been Interrupted

    glad we could help John and thanks for the rep points

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

    Re: Code Execution Has Been Interrupted

    A bit late to the party, but a lot of times, Ctrl-Break twice (Hold down Ctrl and press Break twice) clears this...

  7. #7
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Code Execution Has Been Interrupted

    thanks cytop --- I'll give that a try next time it happens ---

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

    Re: Code Execution Has Been Interrupted

    No in experience as the error might still remain on the memory. Rebooting the system will free up the RAM.

+ 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. Code execution has been interrupted
    By tacojoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2008, 03:44 AM
  2. Code execution has been interrupted
    By Stuart C in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2006, 05:10 AM
  3. code execution has been interrupted
    By Who I Am in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2006, 08:00 AM
  4. Code execution has been interrupted
    By LAF in forum Excel General
    Replies: 0
    Last Post: 01-04-2006, 11:39 PM
  5. code execution has been interrupted
    By François in forum Excel General
    Replies: 1
    Last Post: 02-18-2005, 07:06 PM

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