+ Reply to Thread
Results 1 to 5 of 5

How to discover cause of this error?

  1. #1
    Forum Contributor terrypin's Avatar
    Join Date
    01-06-2010
    Location
    East Grinstead, UK
    MS-Off Ver
    MS Office 365
    Posts
    533

    How to discover cause of this error?

    This VBA macro (developed after much help here) was working sweetly over many repetitions. I ran it again today for first time in a few weeks and it failed. First message was "Code execution has been interrrupted" and on clicking Debug I get this second message, with the apparent problem line highlighted.

    As a VBA novice I'm stumped, as I can't see anything wrong with that code. Are there any most likely causes I should focus on please?

    CodeExecFailed-1.jpg
    Terry, East Grinstead, UK
    Excel 365, Win 10 Pro, i7 PC, 4.0 GHz

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: How to discover cause of this error?

    What for is this command 'Windows("TEMP-VariableList.txt").Activate' ?
    After opening this workbook ("TEMP-VariableList.txt"), it is an active workbook, and "Activate" is unnecessary.

  3. #3
    Forum Contributor terrypin's Avatar
    Join Date
    01-06-2010
    Location
    East Grinstead, UK
    MS-Off Ver
    MS Office 365
    Posts
    533

    Re: How to discover cause of this error?

    Quote Originally Posted by porucha vevrku View Post
    What for is this command 'Windows("TEMP-VariableList.txt").Activate' ?
    After opening this workbook ("TEMP-VariableList.txt"), it is an active workbook, and "Activate" is unnecessary.
    Thanks but if that command is removed the problem remains. (Not surprising, as it has been working with that previously, as mentioned.)

    Now the error is at the next command, Application.Left = 782.75
    Last edited by terrypin; 05-20-2018 at 11:21 AM.

  4. #4
    Forum Contributor terrypin's Avatar
    Join Date
    01-06-2010
    Location
    East Grinstead, UK
    MS-Off Ver
    MS Office 365
    Posts
    533

    Re: How to discover cause of this error?

    Further googling seems to indicate that this is a fairly common issue and a rather obscure one, to me at least:
    https://stackoverflow.com/questions/...as-been-halted

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: How to discover cause of this error?

    Try this way:
    Please Login or Register  to view this content.

+ 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] Using FIND or SEARCH to discover gold or silver
    By Jim_Robison in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-21-2015, 01:04 PM
  2. Discover the color.value
    By HelderPT in forum Excel General
    Replies: 5
    Last Post: 08-18-2012, 04:10 PM
  3. How to discover the color...
    By lisandro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-22-2007, 07:23 AM
  4. discover format of Excel Cell using VBA
    By Ron Kendall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2006, 11:50 AM
  5. [SOLVED] discover Another rounding issue
    By Aladin Akyurek in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2005, 07:05 AM
  6. discover cell causing column width
    By no bosh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-03-2005, 05: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