+ Reply to Thread
Results 1 to 4 of 4

Code execution has been interrupted error

  1. #1
    Registered User
    Join Date
    03-22-2012
    Location
    Bangalore, IND
    MS-Off Ver
    EXCEL 2010, 2007
    Posts
    90

    Code execution has been interrupted error

    vba error.PNG I am hereby attaching a VBA error screen shot , I am not getting why this error populates sometimes and even not for a so big coding .. down I am parsing the code.

    Please Login or Register  to view this content.
    ah one more thing is the sheet is protected one but the cell which i want to edit had been is unlocked. It would be great if someone points out the root cause.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Code execution has been interrupted error

    I have got this error in the past. It usually happens when you have less memory to execute the whole code. You can do 2 things - 1. Either click Continue each time this popup appears.
    2. Stop the macro when its running and close other excel files that are open (if any). Check what your RAM utilization is at that time and if there are too many processes running in your computer which are not needed. You can check this using the Task Manager.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    12-28-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    280

    Re: Code execution has been interrupted error

    That whole code snippet can be re-written as:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-22-2012
    Location
    Bangalore, IND
    MS-Off Ver
    EXCEL 2010, 2007
    Posts
    90

    Re: Code execution has been interrupted error

    thank you firefly , added rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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