Solved

breakpoints appear to have remained in vba

Posted on 2014-09-03
4
170 Views
Last Modified: 2014-09-03
I was testing some code and added breakpoints. I removed the breakpoints but its still stopping in the same places. maybe i have done something silly that i cannot spot?

I have a screen shot here where it stopped.

I tried saving and repair options but it still halts and waits.
ee-breakpoints.PNG
0
Comment
Question by:PeterBaileyUk
  • 2
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 40300986
No, it's an age old problem in VBA ("Phantom Break points").

Open a code module, add a line of code (like a STOP).  Save and compile.   Then do a "Remove all break points", remove the stop, compile and save.  That usually gets rid of the problem.

Jim.
0
 
LVL 57
ID: 40300994
You can also cut and paste all the code in a module and/or do a /decompile.

Anything that forces VBA to change the state of the module and be forced to do a recompile.

Jim.
0
 

Author Comment

by:PeterBaileyUk
ID: 40301026
Success, well i never had that before.
0
 

Author Closing Comment

by:PeterBaileyUk
ID: 40301027
thank you.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now