+ Reply to Thread
Results 1 to 3 of 3

"Code execution has been interrupted" Error

  1. #1
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    "Code execution has been interrupted" Error

    I started getting this error on all of the macros I have in one particular sheet. I am not pressing anything that could interrupt the code, the error comes up almost immediately. Normally the macro takes about 2 seconds to run.

    The code itself is not the issue as far as I can tell, I have not modified the code in weeks, and had a backup of the previous version which worked flawlessly, now causes errors.

    Here is an example of the code being highlighted, the variables are all assigned correctly, I stepped in with a tracker open and everything was fine.
    Please Login or Register  to view this content.
    Another sheet seems to like to lock up on an "End With" statement(??)
    Please Login or Register  to view this content.



    The only thing I have done is add a data source to ODBC, but I am not sure how this could cause errors in VBA that never referenced a DB in the first place?



    Thanks
    cei.PNG
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  2. #2
    Registered User
    Join Date
    11-15-2012
    Location
    Göteborg, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: "Code execution has been interrupted" Error

    Hello

    Definetly a peculiar problem,

    Have you googled it? First hit suggests this solution, sounds quite strange.

    http://stackoverflow.com/questions/2...as-been-halted

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: "Code execution has been interrupted" Error

    Thanks, Debug - Control + Break x 2 worked. I didn't get this result when i googled the message, I got a unhelpful TeachExcel result and a dead-end msdn post...guess I should have scrolled down more. hmph.

    I'd love to know what the underlying problem is being caused by, I have novice users who use my programs, I don't know if I want them exposed to unprotected VBA code....

+ 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] HELP: "Code execution has been interrupted" Error
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2013, 04:23 PM
  2. " Code Executing has been interrupted" error.
    By milankc123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2013, 03:37 AM
  3. "code execution has been interrupted" My error, or glitch?
    By DanBraden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2011, 12:35 PM
  4. "Code execution has been interrupted" - any ideas?
    By lottesfog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2008, 08:46 PM
  5. [SOLVED] error: Code Execution has been interrupted
    By Joshua Fredrickson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2005, 11:50 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