PC Review


Reply
Thread Tools Rate Thread

can't enter break mode at this time

 
 
DanR
Guest
Posts: n/a
 
      7th May 2007
When trying to stop at a breakpoint, "can't enter break mode at this time"
is displayed.
How do I get around this?

Excel 2003,
Dan


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      7th May 2007
I set a break point on the previous line and another on the subsequent line.

Then I don't step through it. I run to the next break point.

DanR wrote:
>
> When trying to stop at a breakpoint, "can't enter break mode at this time"
> is displayed.
> How do I get around this?
>
> Excel 2003,
> Dan


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      7th May 2007
I was getting that when I was editing some code by stepping through. When I
executed a step that deleted a WordArt shape, it gave me the "Can't enter
breakpoint" message. However, when I ran the code in full, it did not
display the message. I never figured it out, but so far it has only done it
with the WordArt shape, so I just ignored the one I got during the edit
process.

"DanR" wrote:

> When trying to stop at a breakpoint, "can't enter break mode at this time"
> is displayed.
> How do I get around this?
>
> Excel 2003,
> Dan
>
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      7th May 2007
I get the same error when I'm stepping through code that adds controls (to a
worksheet) from the Control toolbox toolbar.

JLGWhiz wrote:
>
> I was getting that when I was editing some code by stepping through. When I
> executed a step that deleted a WordArt shape, it gave me the "Can't enter
> breakpoint" message. However, when I ran the code in full, it did not
> display the message. I never figured it out, but so far it has only done it
> with the WordArt shape, so I just ignored the one I got during the edit
> process.
>
> "DanR" wrote:
>
> > When trying to stop at a breakpoint, "can't enter break mode at this time"
> > is displayed.
> > How do I get around this?
> >
> > Excel 2003,
> > Dan
> >
> >
> >


--

Dave Peterson
 
Reply With Quote
 
DanR
Guest
Posts: n/a
 
      7th May 2007
I have tried setting breakpoints at various places but does not help. Code
is started via UserForm (tried modal & modeless). This used to step but I
can't figure out what changed or ?. Code is now password protected operating
after opened by password. Could the protection be getting in the way?

Dan

"JLGWhiz" <(E-Mail Removed)> wrote in message
news:026BA9D4-B966-452D-95A9-(E-Mail Removed)...
>I was getting that when I was editing some code by stepping through. When
>I
> executed a step that deleted a WordArt shape, it gave me the "Can't enter
> breakpoint" message. However, when I ran the code in full, it did not
> display the message. I never figured it out, but so far it has only done
> it
> with the WordArt shape, so I just ignored the one I got during the edit
> process.
>
> "DanR" wrote:
>
>> When trying to stop at a breakpoint, "can't enter break mode at this
>> time"
>> is displayed.
>> How do I get around this?
>>
>> Excel 2003,
>> Dan
>>
>>
>>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      7th May 2007
I think it depends on how you start your code. If I click in the subroutine
that shows the userform and hit F8 to step through it, then I continue to step
through the code.

But you may want to add a line:
Stop
to stop where you want.

Remove that line before you give the workbook to others!


DanR wrote:
>
> I have tried setting breakpoints at various places but does not help. Code
> is started via UserForm (tried modal & modeless). This used to step but I
> can't figure out what changed or ?. Code is now password protected operating
> after opened by password. Could the protection be getting in the way?
>
> Dan
>
> "JLGWhiz" <(E-Mail Removed)> wrote in message
> news:026BA9D4-B966-452D-95A9-(E-Mail Removed)...
> >I was getting that when I was editing some code by stepping through. When
> >I
> > executed a step that deleted a WordArt shape, it gave me the "Can't enter
> > breakpoint" message. However, when I ran the code in full, it did not
> > display the message. I never figured it out, but so far it has only done
> > it
> > with the WordArt shape, so I just ignored the one I got during the edit
> > process.
> >
> > "DanR" wrote:
> >
> >> When trying to stop at a breakpoint, "can't enter break mode at this
> >> time"
> >> is displayed.
> >> How do I get around this?
> >>
> >> Excel 2003,
> >> Dan
> >>
> >>
> >>


--

Dave Peterson
 
Reply With Quote
 
DanR
Guest
Posts: n/a
 
      7th May 2007
I took a clue from WordArt comment. Turns out that this happens 'after' a
listbox is inserted on a sheet. It seems that if I inhibit the listbox, I
can step the code.

Dan

"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I think it depends on how you start your code. If I click in the
>subroutine
> that shows the userform and hit F8 to step through it, then I continue to
> step
> through the code.
>
> But you may want to add a line:
> Stop
> to stop where you want.
>
> Remove that line before you give the workbook to others!
>
>
> DanR wrote:
>>
>> I have tried setting breakpoints at various places but does not help.
>> Code
>> is started via UserForm (tried modal & modeless). This used to step but
>> I
>> can't figure out what changed or ?. Code is now password protected
>> operating
>> after opened by password. Could the protection be getting in the way?
>>
>> Dan
>>
>> "JLGWhiz" <(E-Mail Removed)> wrote in message
>> news:026BA9D4-B966-452D-95A9-(E-Mail Removed)...
>> >I was getting that when I was editing some code by stepping through.
>> >When
>> >I
>> > executed a step that deleted a WordArt shape, it gave me the "Can't
>> > enter
>> > breakpoint" message. However, when I ran the code in full, it did not
>> > display the message. I never figured it out, but so far it has only
>> > done
>> > it
>> > with the WordArt shape, so I just ignored the one I got during the edit
>> > process.
>> >
>> > "DanR" wrote:
>> >
>> >> When trying to stop at a breakpoint, "can't enter break mode at this
>> >> time"
>> >> is displayed.
>> >> How do I get around this?
>> >>
>> >> Excel 2003,
>> >> Dan
>> >>
>> >>
>> >>

>
> --
>
> Dave Peterson



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      7th May 2007
If that listbox is from the control toolbox toolbar, then it's pretty common in
my experience.

DanR wrote:
>
> I took a clue from WordArt comment. Turns out that this happens 'after' a
> listbox is inserted on a sheet. It seems that if I inhibit the listbox, I
> can step the code.
>
> Dan
>
> "Dave Peterson" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >I think it depends on how you start your code. If I click in the
> >subroutine
> > that shows the userform and hit F8 to step through it, then I continue to
> > step
> > through the code.
> >
> > But you may want to add a line:
> > Stop
> > to stop where you want.
> >
> > Remove that line before you give the workbook to others!
> >
> >
> > DanR wrote:
> >>
> >> I have tried setting breakpoints at various places but does not help.
> >> Code
> >> is started via UserForm (tried modal & modeless). This used to step but
> >> I
> >> can't figure out what changed or ?. Code is now password protected
> >> operating
> >> after opened by password. Could the protection be getting in the way?
> >>
> >> Dan
> >>
> >> "JLGWhiz" <(E-Mail Removed)> wrote in message
> >> news:026BA9D4-B966-452D-95A9-(E-Mail Removed)...
> >> >I was getting that when I was editing some code by stepping through.
> >> >When
> >> >I
> >> > executed a step that deleted a WordArt shape, it gave me the "Can't
> >> > enter
> >> > breakpoint" message. However, when I ran the code in full, it did not
> >> > display the message. I never figured it out, but so far it has only
> >> > done
> >> > it
> >> > with the WordArt shape, so I just ignored the one I got during the edit
> >> > process.
> >> >
> >> > "DanR" wrote:
> >> >
> >> >> When trying to stop at a breakpoint, "can't enter break mode at this
> >> >> time"
> >> >> is displayed.
> >> >> How do I get around this?
> >> >>
> >> >> Excel 2003,
> >> >> Dan
> >> >>
> >> >>
> >> >>

> >
> > --
> >
> > Dave Peterson


--

Dave Peterson
 
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
Can't enter break mode at this time ERROR Ayo Microsoft Excel Misc 4 21st Jul 2008 05:09 PM
Any ideas "can't enter break mode at this time" error gone amok ArielMalek Microsoft Excel Programming 1 12th Jul 2008 08:15 AM
"can't enter break mode at this time" message when adding a projectreference dbKemp Microsoft Excel Programming 0 30th Jan 2008 03:12 PM
Can't enter break mode at this time =?Utf-8?B?Q1dpbGxpcw==?= Microsoft Excel Misc 2 1st Jun 2006 07:43 PM
received message: Can't enter break mode at this time William Weder Microsoft Excel Programming 0 1st Mar 2006 01:58 AM


Features
 

Advertising
 

Newsgroups
 


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