PC Review


Reply
Thread Tools Rate Thread

Can't break out of code help!

 
 
msnyc07
Guest
Posts: n/a
 
      12th Apr 2010
Somehow one of my VBAs got called and I can't get out if it. Esc only calls
up the Dialog box that allows me to End/Continue/Debug, End does nothing,
Debug stops but I still can't CANCEL it. Any suggestions? I am stuck
otherwise and will lose a lot of work...
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      12th Apr 2010
If you are in debug with the highlight showing, click the Design Mode icon,
if the debug highlight goes out, you are out of the macro. I am betting
that you are using an event code for a sheet_change. If so, before clicking
the icon, put a comment (apostorphe) in front of your macro title. That
will prevent it from running until you can straighten out the code.




"msnyc07" <(E-Mail Removed)> wrote in message
news:39BB57E6-E6F6-456E-87F0-(E-Mail Removed)...
> Somehow one of my VBAs got called and I can't get out if it. Esc only
> calls
> up the Dialog box that allows me to End/Continue/Debug, End does nothing,
> Debug stops but I still can't CANCEL it. Any suggestions? I am stuck
> otherwise and will lose a lot of work...



 
Reply With Quote
 
Gary Keramidas
Guest
Posts: n/a
 
      12th Apr 2010
did you try control break?

--


Gary Keramidas
Excel 2003


"msnyc07" <(E-Mail Removed)> wrote in message
news:39BB57E6-E6F6-456E-87F0-(E-Mail Removed)...
> Somehow one of my VBAs got called and I can't get out if it. Esc only
> calls
> up the Dialog box that allows me to End/Continue/Debug, End does nothing,
> Debug stops but I still can't CANCEL it. Any suggestions? I am stuck
> otherwise and will lose a lot of work...


 
Reply With Quote
 
Barb Reinhardt
Guest
Posts: n/a
 
      12th Apr 2010
When you debug, can you press the little Disc button in the VBE?
--
HTH,

Barb Reinhardt



"msnyc07" wrote:

> Somehow one of my VBAs got called and I can't get out if it. Esc only calls
> up the Dialog box that allows me to End/Continue/Debug, End does nothing,
> Debug stops but I still can't CANCEL it. Any suggestions? I am stuck
> otherwise and will lose a lot of work...

 
Reply With Quote
 
msnyc07
Guest
Posts: n/a
 
      12th Apr 2010
In the icon tray in the top? No disc button there...

"Barb Reinhardt" wrote:

> When you debug, can you press the little Disc button in the VBE?
> --
> HTH,
>
> Barb Reinhardt
>
>
>
> "msnyc07" wrote:
>
> > Somehow one of my VBAs got called and I can't get out if it. Esc only calls
> > up the Dialog box that allows me to End/Continue/Debug, End does nothing,
> > Debug stops but I still can't CANCEL it. Any suggestions? I am stuck
> > otherwise and will lose a lot of work...

 
Reply With Quote
 
JLatham
Guest
Posts: n/a
 
      12th Apr 2010
Some things to try:
Go ahead and get into it with [Debug] and then go back to the main window
and click the disk icon to save the file, or attempt plain old File --> Save.

Or maybe once you get into the debug mode, you can add an Exit Sub line of
code just below the line you interrupted it in?


"msnyc07" wrote:

> Somehow one of my VBAs got called and I can't get out if it. Esc only calls
> up the Dialog box that allows me to End/Continue/Debug, End does nothing,
> Debug stops but I still can't CANCEL it. Any suggestions? I am stuck
> otherwise and will lose a lot of work...

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      12th Apr 2010
Maybe you could share with us the type of macro you are running. i.e. Sheet
event, control event, etc. Whatever event, if you can get it to debug, you
can stop it without losing anything by commenting it out. If all else fails
Ctrl + Alt +Del will definitely stop it, but you will lose data.



"msnyc07" <(E-Mail Removed)> wrote in message
news:C996FE4E-3B79-4672-A670-(E-Mail Removed)...
> In the icon tray in the top? No disc button there...
>
> "Barb Reinhardt" wrote:
>
>> When you debug, can you press the little Disc button in the VBE?
>> --
>> HTH,
>>
>> Barb Reinhardt
>>
>>
>>
>> "msnyc07" wrote:
>>
>> > Somehow one of my VBAs got called and I can't get out if it. Esc only
>> > calls
>> > up the Dialog box that allows me to End/Continue/Debug, End does
>> > nothing,
>> > Debug stops but I still can't CANCEL it. Any suggestions? I am stuck
>> > otherwise and will lose a lot of work...



 
Reply With Quote
 
msnyc07
Guest
Posts: n/a
 
      12th Apr 2010
Thanks all. Excel finally crashed, which it seems to like to do several
times a week, functions or not. Pretty much tired of it as it is next to
impossible to recreate my work.

"JLatham" wrote:

> Some things to try:
> Go ahead and get into it with [Debug] and then go back to the main window
> and click the disk icon to save the file, or attempt plain old File --> Save.
>
> Or maybe once you get into the debug mode, you can add an Exit Sub line of
> code just below the line you interrupted it in?
>
>
> "msnyc07" wrote:
>
> > Somehow one of my VBAs got called and I can't get out if it. Esc only calls
> > up the Dialog box that allows me to End/Continue/Debug, End does nothing,
> > Debug stops but I still can't CANCEL it. Any suggestions? I am stuck
> > otherwise and will lose a lot of work...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How best to break up code shelfish Microsoft Excel Programming 8 9th May 2008 06:02 PM
Break Into Code =?Utf-8?B?RGF3biBT?= Microsoft Access 4 25th Apr 2007 06:36 PM
OnTime code error "can't execute code in break mode" tskogstrom Microsoft Excel Programming 1 8th Sep 2006 10:29 AM
add page break code in csv file to force break when loading. tim Microsoft Excel Misc 3 1st Apr 2004 01:49 AM
Re: Break out of Code Chip Pearson Microsoft Excel Programming 0 6th Aug 2003 03:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:31 AM.