PC Review


Reply
Thread Tools Rate Thread

"Can't enter break mode at this time" error coming up

 
 
=?Utf-8?B?cm9iczMxMzE=?=
Guest
Posts: n/a
 
      30th Jul 2007
Hi,

I am trying to have my code execute up to a point and then stop -- I have
been doing this successfully, up until now, by typing "Stop" into my code
where I want the code execution to suspend. For some reason, I am now
getting the error message noted in the subject of this post -- when I click
on "Help", it gives me the following explanation (below is the only wording
from this explanation that appears that it applies to my case). When I
queried info on "extensibility", I was brought to the help for Security - I
tried changing the "Trust all installed add-ins and templates" checkbox but
that didn't fix the issue.

"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."

Thanks in advance!
--
Robert
 
Reply With Quote
 
 
 
 
=?Utf-8?B?cm9iczMxMzE=?=
Guest
Posts: n/a
 
      30th Jul 2007
Hi,

After spending some time rearching this on Google, I was able to find that
the issue is that I am adding ActiveX controls in my code -- apparently, when
this is done, you can't put breaks in the code. I commented out where I am
adding the Active X controls and I was indeed able to put the break in my
code.

I'm wondering - does anyone know if there is a workaround to this issue?
I'd like to think that there is a way to have ActiveX controls added through
my code and still be able to put a break in my code.

Thanks!

--
Robert


"robs3131" wrote:

> Hi,
>
> I am trying to have my code execute up to a point and then stop -- I have
> been doing this successfully, up until now, by typing "Stop" into my code
> where I want the code execution to suspend. For some reason, I am now
> getting the error message noted in the subject of this post -- when I click
> on "Help", it gives me the following explanation (below is the only wording
> from this explanation that appears that it applies to my case). When I
> queried info on "extensibility", I was brought to the help for Security - I
> tried changing the "Trust all installed add-ins and templates" checkbox but
> that didn't fix the issue.
>
> "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."
>
> Thanks in advance!
> --
> Robert

 
Reply With Quote
 
=?Utf-8?B?cm9iczMxMzE=?=
Guest
Posts: n/a
 
      30th Jul 2007
Wow - I should've searched this site first before going to Google! Don't
know why I forgot to do that. Anyway, I saw a thread from back in May of
this year about this exact issue - it seems that no one had a way of working
around the issue. If anyone does have a way to workaround this, please let
me know.

Thanks!

--
Robert


"robs3131" wrote:

> Hi,
>
> After spending some time rearching this on Google, I was able to find that
> the issue is that I am adding ActiveX controls in my code -- apparently, when
> this is done, you can't put breaks in the code. I commented out where I am
> adding the Active X controls and I was indeed able to put the break in my
> code.
>
> I'm wondering - does anyone know if there is a workaround to this issue?
> I'd like to think that there is a way to have ActiveX controls added through
> my code and still be able to put a break in my code.
>
> Thanks!
>
> --
> Robert
>
>
> "robs3131" wrote:
>
> > Hi,
> >
> > I am trying to have my code execute up to a point and then stop -- I have
> > been doing this successfully, up until now, by typing "Stop" into my code
> > where I want the code execution to suspend. For some reason, I am now
> > getting the error message noted in the subject of this post -- when I click
> > on "Help", it gives me the following explanation (below is the only wording
> > from this explanation that appears that it applies to my case). When I
> > queried info on "extensibility", I was brought to the help for Security - I
> > tried changing the "Trust all installed add-ins and templates" checkbox but
> > that didn't fix the issue.
> >
> > "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."
> >
> > Thanks in advance!
> > --
> > Robert

 
Reply With Quote
 
=?Utf-8?B?Sm9obiBCdW5keQ==?=
Guest
Posts: n/a
 
      30th Jul 2007
Not really an official way, but I will often have a msgbox pop up, this will
break the code until you click ok, you can place anywhere and still go into
your code and look at data, iterations etc, instead of pressing "play" again
you just hit ok and it goes to the next break or msgbox
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"robs3131" wrote:

> Wow - I should've searched this site first before going to Google! Don't
> know why I forgot to do that. Anyway, I saw a thread from back in May of
> this year about this exact issue - it seems that no one had a way of working
> around the issue. If anyone does have a way to workaround this, please let
> me know.
>
> Thanks!
>
> --
> Robert
>
>
> "robs3131" wrote:
>
> > Hi,
> >
> > After spending some time rearching this on Google, I was able to find that
> > the issue is that I am adding ActiveX controls in my code -- apparently, when
> > this is done, you can't put breaks in the code. I commented out where I am
> > adding the Active X controls and I was indeed able to put the break in my
> > code.
> >
> > I'm wondering - does anyone know if there is a workaround to this issue?
> > I'd like to think that there is a way to have ActiveX controls added through
> > my code and still be able to put a break in my code.
> >
> > Thanks!
> >
> > --
> > Robert
> >
> >
> > "robs3131" wrote:
> >
> > > Hi,
> > >
> > > I am trying to have my code execute up to a point and then stop -- I have
> > > been doing this successfully, up until now, by typing "Stop" into my code
> > > where I want the code execution to suspend. For some reason, I am now
> > > getting the error message noted in the subject of this post -- when I click
> > > on "Help", it gives me the following explanation (below is the only wording
> > > from this explanation that appears that it applies to my case). When I
> > > queried info on "extensibility", I was brought to the help for Security - I
> > > tried changing the "Trust all installed add-ins and templates" checkbox but
> > > that didn't fix the issue.
> > >
> > > "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."
> > >
> > > Thanks in advance!
> > > --
> > > Robert

 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      31st Jul 2007
PeterT posted a reply to similar question within the last week that may
apply.
Has to do with adding an ActiveX control forces a recompile of the project.
http://groups.google.co.uk/group/mic...48c53ca152d528

Maybe add Forms controls instead if possible.

NickHK

"robs3131" <(E-Mail Removed)> wrote in message
news277C542-38B1-40E9-8E36-(E-Mail Removed)...
> Hi,
>
> I am trying to have my code execute up to a point and then stop -- I have
> been doing this successfully, up until now, by typing "Stop" into my code
> where I want the code execution to suspend. For some reason, I am now
> getting the error message noted in the subject of this post -- when I

click
> on "Help", it gives me the following explanation (below is the only

wording
> from this explanation that appears that it applies to my case). When I
> queried info on "extensibility", I was brought to the help for Security -

I
> tried changing the "Trust all installed add-ins and templates" checkbox

but
> that didn't fix the issue.
>
> "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."
>
> Thanks in advance!
> --
> Robert



 
Reply With Quote
 
=?Utf-8?B?cm9iczMxMzE=?=
Guest
Posts: n/a
 
      3rd Aug 2007
Thanks Nick and John for the information. I think I'm going to try John's
approach of using msgbox to break the code.

It seems though from the link Nick posted that serious problems can arise
from having the code to add AcitiveX controls in the workbook you are
developing -- he suggested using another workbook to house the code to add
the controls...I haven't seen any major issue, besides the inability to break
the code, by housing the code to add ActiveX controls within the workbook I'm
developing but I'll keep an eye on that. If either of you have seen problems
with this please let me know.

Thanks again,
--
Robert


"NickHK" wrote:

> PeterT posted a reply to similar question within the last week that may
> apply.
> Has to do with adding an ActiveX control forces a recompile of the project.
> http://groups.google.co.uk/group/mic...48c53ca152d528
>
> Maybe add Forms controls instead if possible.
>
> NickHK
>
> "robs3131" <(E-Mail Removed)> wrote in message
> news277C542-38B1-40E9-8E36-(E-Mail Removed)...
> > Hi,
> >
> > I am trying to have my code execute up to a point and then stop -- I have
> > been doing this successfully, up until now, by typing "Stop" into my code
> > where I want the code execution to suspend. For some reason, I am now
> > getting the error message noted in the subject of this post -- when I

> click
> > on "Help", it gives me the following explanation (below is the only

> wording
> > from this explanation that appears that it applies to my case). When I
> > queried info on "extensibility", I was brought to the help for Security -

> I
> > tried changing the "Trust all installed add-ins and templates" checkbox

> but
> > that didn't fix the issue.
> >
> > "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."
> >
> > Thanks in advance!
> > --
> > Robert

>
>
>

 
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" error Rocky Microsoft Excel Programming 4 27th Aug 2008 12:32 AM
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" Paul T. Microsoft Excel Programming 5 25th Aug 2006 10:57 PM
"Can't Enter Break Mode"? =?Utf-8?B?Q1dpbGxpcw==?= Microsoft Excel Misc 2 31st May 2006 09:17 PM


Features
 

Advertising
 

Newsgroups
 


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