Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Any ideas "can't enter break mode at this time" error gone amok

Hello,
I am pressing the metal to get a project out way past deadline on my
Excel 2003 VBA app. I have a routine to programmatically delete and
clear out some text filled ranges and exit but am having problems with
it so I tried to set some debug break points in the code to find the
problem but I get the above Visual Basic error message which didn't
happen before believe in this routine. And it happened earlier trying
to debug another routine which seemed inappropriate. I also tried to
use the debug.assert method but it was just ignored. Right or wrong it
seems this error message is happening too much without apparent
reason. The help on it reads as follows:

"Can't enter break mode at this time


Break mode is the state in which a program is still running, but its
activity is suspended. This error has the following cause and
solution:

You tried to enter break mode, for example, by pressing CTRL+BREAK
(Windows) or COMMAND+PERIOD (Macintosh), pressing the Break button on
the Standard toolbar or the Debug toolbar, or by executing a
breakpoint in the running code.
A change was made programmatically to the project using the
extensibility (add-in) object model. This prevents the program from
having execution suspended. You can continue running, or end
execution, but can't suspend execution. "

I'm not sure what extensibility object model might be involved, but I
was fairly certain I could get break points to work in the routine
before.
If anyone has any experience or suggestions, it would be much
appreciated as I need to get this demo out pronto. Thanks, God bless,
Van
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Any ideas "can't enter break mode at this time" error gone amok

It is normal for some code in VBA to produce the message "Can't enter break
mode at this time". It makes the code harder to debug. I sometimes add
msgbox(...) to the code to help debug these problems. I think debug.print
.... will also work.


"ArielMalek" wrote:

Hello,
I am pressing the metal to get a project out way past deadline on my
Excel 2003 VBA app. I have a routine to programmatically delete and
clear out some text filled ranges and exit but am having problems with
it so I tried to set some debug break points in the code to find the
problem but I get the above Visual Basic error message which didn't
happen before believe in this routine. And it happened earlier trying
to debug another routine which seemed inappropriate. I also tried to
use the debug.assert method but it was just ignored. Right or wrong it
seems this error message is happening too much without apparent
reason. The help on it reads as follows:

"Can't enter break mode at this time


Break mode is the state in which a program is still running, but its
activity is suspended. This error has the following cause and
solution:

You tried to enter break mode, for example, by pressing CTRL+BREAK
(Windows) or COMMAND+PERIOD (Macintosh), pressing the Break button on
the Standard toolbar or the Debug toolbar, or by executing a
breakpoint in the running code.
A change was made programmatically to the project using the
extensibility (add-in) object model. This prevents the program from
having execution suspended. You can continue running, or end
execution, but can't suspend execution. "

I'm not sure what extensibility object model might be involved, but I
was fairly certain I could get break points to work in the routine
before.
If anyone has any experience or suggestions, it would be much
appreciated as I need to get this demo out pronto. Thanks, God bless,
Van

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't enter break mode at this time ERROR Ayo Excel Discussion (Misc queries) 4 July 21st 08 05:09 PM
"can't enter break mode at this time" message when adding a projectreference dbKemp Excel Programming 0 January 30th 08 03:12 PM
"Can't enter break mode at this time" error coming up robs3131 Excel Programming 5 August 3rd 07 09:10 AM
"Can't enter break mode at this time" Paul T. Excel Programming 5 August 25th 06 10:57 PM
"Can't Enter Break Mode"? CWillis Excel Discussion (Misc queries) 2 May 31st 06 09:17 PM


All times are GMT +1. The time now is 07:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"