+ Reply to Thread
Results 1 to 2 of 2

Random Code Execution Interruptions?

  1. #1
    Registered User
    Join Date
    04-22-2015
    Location
    Albuquerque, New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    3

    Random Code Execution Interruptions?

    I am using vba to programmatically create a huge number of queries. My code works fine for the first pass but then spits out a "Code execution has been interrupted" error seemingly randomly during the second loop - I say randomly because each time I rerun the code without changing anything, it may stop at a different line. I am completely stumped as to what is going on, you can see the code below or view the attached spreadsheet. Any help would be appreciated...

    Coding Script.xlsm

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    422

    Re: Random Code Execution Interruptions?

    Try this when you get 'Code execution has been interrupted':

    Press 'Debug', then Ctrl-Break twice. Press F5 to continue and save.

+ 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. Aborting code execution
    By nymm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2011, 04:43 AM
  2. code execution has interrupted
    By arunvj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-22-2006, 07:16 AM
  3. Code Execution has been interrupted - ??
    By ina in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-15-2006, 11:55 AM
  4. 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
  5. Code execution has been interrupted
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2006, 03:25 AM
  6. [SOLVED] VBA Code execution delay
    By Raas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2005, 12:10 PM
  7. Slow code execution
    By side_ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2005, 01:44 PM
  8. Code execution has been interrupted
    By Who I Am in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-28-2005, 10:32 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