Immediately Entering Break Mode

B

bgetson

I recently added a userform to a workbook I'm working on. When
creating the code for the form, I accidently placed a loop in the
wrong place, causing an infinte loop where ESC wouldn't cancel the
process. I used CTRL+Break to end my process, but since then (could
just be my superstition) I've been having a weird problem.

If I launch a module from an external source, like the Macro Window,
then my code enters break mode after the following code:

Load UserForm1
UserForm1.Show

My form opens, but the code inside isn't run until I hit "continue"
inside the VB Editor. If I run my module from within the VB Editor I
don't get this problem.

I've tried copying my data into a blank workbook, creating a blank
userform, and typing in the same code into a blank module. The same
thing happens.

Is there any way I can stop entering break mode?
 
D

David Hilberg

I would next try closing Excel. Next, rebooting the computer. Sorry
not to be more help.

- David
 
N

Nayan

Hi there,

Goto Debug menu in Code editor.

Select 'Clear all break points"

Make some changes in your code "Even if its hit a blank line and delete it"

Compile your code

Save it

Close Excel and Try again


If this does not work repeat the steps above and reboot your machine

Hope this helps

Nayan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top