Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Can't enter break mode at this time ERROR

How do I bypass the "Can't enter break mode at this time" error. I am trying
to find the source of the problem in my code but when this message comes up I
on't have the option to Debug. I only have options to Continue, End and Help.
How do I get in the Debug mode to try and fix my code problem?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Can't enter break mode at this time ERROR

There are certain instructions in VBA that will produce this warning message.
You can't eliminate this message. You either have to put break points
futher in the code past these instructions. If you are stepping through the
code you have to add a break point futher in the code and then press F5 to go
to break point. What also helps is adding debug.print statments to see what
is happening in the areas that you can't sterp through your code.

"Ayo" wrote:

How do I bypass the "Can't enter break mode at this time" error. I am trying
to find the source of the problem in my code but when this message comes up I
on't have the option to Debug. I only have options to Continue, End and Help.
How do I get in the Debug mode to try and fix my code problem?
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Can't enter break mode at this time ERROR

The problem is, no matter where I put the break point, I get the error
message. It is not allowing me to debug my code.

"Joel" wrote:

There are certain instructions in VBA that will produce this warning message.
You can't eliminate this message. You either have to put break points
futher in the code past these instructions. If you are stepping through the
code you have to add a break point futher in the code and then press F5 to go
to break point. What also helps is adding debug.print statments to see what
is happening in the areas that you can't sterp through your code.

"Ayo" wrote:

How do I bypass the "Can't enter break mode at this time" error. I am trying
to find the source of the problem in my code but when this message comes up I
on't have the option to Debug. I only have options to Continue, End and Help.
How do I get in the Debug mode to try and fix my code problem?
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Can't enter break mode at this time ERROR

I usually end up adding msgboxes to the code as a last resort when it doesn't
let me use beak points. Sometimes I comment out the instruction that is
preventing the break point. then add it back in after the rest of the code
is working.

"Ayo" wrote:

The problem is, no matter where I put the break point, I get the error
message. It is not allowing me to debug my code.

"Joel" wrote:

There are certain instructions in VBA that will produce this warning message.
You can't eliminate this message. You either have to put break points
futher in the code past these instructions. If you are stepping through the
code you have to add a break point futher in the code and then press F5 to go
to break point. What also helps is adding debug.print statments to see what
is happening in the areas that you can't sterp through your code.

"Ayo" wrote:

How do I bypass the "Can't enter break mode at this time" error. I am trying
to find the source of the problem in my code but when this message comes up I
on't have the option to Debug. I only have options to Continue, End and Help.
How do I get in the Debug mode to try and fix my code problem?
Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Can't enter break mode at this time ERROR

Thanks Joel. I think I have found a way around my problem. The offending code
lines a
Worksheets("FC Construction").Delete
Windows("FC CONSTRUCTION TRACKER_V2.xls").Activate
Sheets("FC Construction").Select
Sheets("FC Construction").Copy
After:=Workbooks("DailyStatus.xls").Sheets("Dates" )
So I commented out the first line and now I am able to debug the codes.

"Joel" wrote:

I usually end up adding msgboxes to the code as a last resort when it doesn't
let me use beak points. Sometimes I comment out the instruction that is
preventing the break point. then add it back in after the rest of the code
is working.

"Ayo" wrote:

The problem is, no matter where I put the break point, I get the error
message. It is not allowing me to debug my code.

"Joel" wrote:

There are certain instructions in VBA that will produce this warning message.
You can't eliminate this message. You either have to put break points
futher in the code past these instructions. If you are stepping through the
code you have to add a break point futher in the code and then press F5 to go
to break point. What also helps is adding debug.print statments to see what
is happening in the areas that you can't sterp through your code.

"Ayo" wrote:

How do I bypass the "Can't enter break mode at this time" error. I am trying
to find the source of the problem in my code but when this message comes up I
on't have the option to Debug. I only have options to Continue, End and Help.
How do I get in the Debug mode to try and fix my code problem?
Thanks

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
ALT+ENTER = line break Nyla Excel Discussion (Misc queries) 14 July 26th 07 03:07 AM
automatically enter a page break michelle Excel Worksheet Functions 1 February 9th 07 03:51 PM
Can't enter break mode at this time CWillis Excel Discussion (Misc queries) 2 June 1st 06 07:43 PM
"Can't Enter Break Mode"? CWillis Excel Discussion (Misc queries) 2 May 31st 06 09:17 PM
slow page-break mode Excel Discussion (Misc queries) 0 January 19th 05 04:02 PM


All times are GMT +1. The time now is 08:53 AM.

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

About Us

"It's about Microsoft Excel"