Excel VBA App stops spontaneously with message Code execution has been halted

0 votes
We have several Excel VBA applications that run flawlessly on a variety of users' computers. On one machine, though, they halt at specific lines of code. It always has the same lines, but they don't seem to be connected in any way.

After the halt, the software resumes if you press F5 (run), thus it's almost like a breakpoint has been added. We've attempted to add breaks and then remove them again, as well as choosing "remove all breaks" from the menu. Previously, when this problem affected a single app, we 'bodged' it by removing code from modules, compiling it, and then pasting it back in, etc.

We're not entirely sure how to handle this since the issue now appears to be with Excel as a whole rather than a specific.xls file.
Sep 26, 2022 in Others by Kithuzzz
• 38,000 points
1,228 views

2 answers to this question.

0 votes

We have a number of Excel VBA apps which work perfectly. You could write VBA code based on the Change event in the worksheet.  You could write VBA code based on the Change event in the worksheet.

answered Sep 28, 2022 by anonymous
• 140 points
0 votes

Solution

  1. Press the "Debug" button in the popup.
  2. Press Ctrl+Pause|Break twice.
  3. Hit the play button to continue.
  4. Save the file after completion.
answered Sep 29, 2022 by narikkadan
• 63,600 points

Related Questions In Others

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required

Your mail.php on config you declare host ...READ MORE

answered Feb 16, 2022 in Others by Aditya
• 7,680 points
3,025 views
0 votes
1 answer

How to print an Excel Sheet using VBA with Nitro PDF Creator in Excel 2016

you can use the built-in excel facilities ...READ MORE

answered Sep 24, 2022 in Others by narikkadan
• 63,600 points
1,402 views
0 votes
1 answer

Hosting Microsoft Edge via WebView2Loader.dll with Excel VBA

Here's an API to communicate with Chromium ...READ MORE

answered Sep 29, 2022 in Others by narikkadan
• 63,600 points
2,846 views
0 votes
1 answer

Retrieve epay.info Balance with VBA and Excel

This code should log you in, provided ...READ MORE

answered Sep 5, 2018 in Blockchain by digger
• 26,740 points
1,260 views
0 votes
1 answer

How to load file to Excel Power query from SFTP site

Currently, I don't think there is a ...READ MORE

answered Dec 3, 2018 in Power BI by Upasana
• 8,620 points
3,698 views
0 votes
1 answer

Using VBA Excel to create a gramatically correct list

The Excel AND function is a logical ...READ MORE

answered Feb 9, 2022 in Others by gaurav
• 23,260 points
978 views
0 votes
2 answers

How to copy a formula horizontally within a table using Excel VBA?

Hi so basically, create an adjacent column ...READ MORE

answered Feb 16, 2022 in Others by Edureka
• 13,690 points
1,091 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP