Can't enter break mode at this time message

  • Follow


Version: 2004
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

I'm trying to step through some simple code in a macro using the VB Editor step into command. I have a statement in the macro: <br><br>Sheets(&quot;DATA&quot;).Move _ <br>
Before:=Workbooks(&quot;Test.xls&quot;).Sheets(1) <br><br>For some reason, this causes the Can't enter break mode message to pop up.  I can Continue, End or Help in the Popup.  Continue finishes the macro, but doesn't let me step through the remaining statements.  All the stuff I've found at google talks about ActiveX controls and extensibility add-in object model.  I'm not using any forms or controls in the workbook, so I can't imaging why this is happening.  If I step through the same code on Excel 2007 it works just fine--no can't enter break mode message.  <br>
Any suggestions?
0
Reply Theodore_MH 12/7/2009 8:11:15 PM

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3343052257_1929720
Content-type: text/plain;
	charset="US-ASCII"
Content-transfer-encoding: 7bit

On 12/7/09 3:11 PM, in article 59bae610.-1@webcrossing.JaKIaxP2ac0,
"Theodore_MH@officeformac.com" <Theodore_MH@officeformac.com> wrote:

> Version: 2004 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I'm
> trying to step through some simple code in a macro using the VB Editor step
> into command. I have a statement in the macro:
> 
> Sheets("DATA").Move _
> Before:=Workbooks("Test.xls").Sheets(1)
> 
> For some reason, this causes the Can't enter break mode message to pop up.  I
> can Continue, End or Help in the Popup.  Continue finishes the macro, but
> doesn't let me step through the remaining statements.  All the stuff I've
> found at google talks about ActiveX controls and extensibility add-in object
> model.  I'm not using any forms or controls in the workbook, so I can't
> imaging why this is happening.  If I step through the same code on Excel 2007
> it works just fine--no can't enter break mode message.
> Any suggestions?
What happens if the statement is on a single line?

-- 
Bob Greenblatt [MVP], Macintosh
bobgreenblattATmsnDOTcom


--B_3343052257_1929720
Content-type: text/html;
	charset="US-ASCII"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>Re: Can't enter break mode at this time message</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Lucida Grande"><SPAN STYLE=3D'font-size:10pt'>On 12/7/09 3:11 PM,=
 in article <a href=3D"59bae610.-1@webcrossing.JaKIaxP2ac0">59bae610.-1@webcro=
ssing.JaKIaxP2ac0</a>, &quot;<a href=3D"Theodore_MH@officeformac.com">Theodore=
_MH@officeformac.com</a>&quot; &lt;<a href=3D"Theodore_MH@officeformac.com">Th=
eodore_MH@officeformac.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Lucida Grande"><SPAN STYLE=3D'font-size=
:10pt'>Version: 2004 Operating System: Mac OS X 10.5 (Leopard) Processor: In=
tel I'm trying to step through some simple code in a macro using the VB Edit=
or step into command. I have a statement in the macro: <BR>
<BR>
Sheets(&quot;DATA&quot;).Move _ <BR>
Before:=3DWorkbooks(&quot;Test.xls&quot;).Sheets(1) <BR>
<BR>
For some reason, this causes the Can't enter break mode message to pop up. =
&nbsp;I can Continue, End or Help in the Popup. &nbsp;Continue finishes the =
macro, but doesn't let me step through the remaining statements. &nbsp;All t=
he stuff I've found at google talks about ActiveX controls and extensibility=
 add-in object model. &nbsp;I'm not using any forms or controls in the workb=
ook, so I can't imaging why this is happening. &nbsp;If I step through the s=
ame code on Excel 2007 it works just fine--no can't enter break mode message=
.. &nbsp;<BR>
Any suggestions?<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Lucida Grande"><SPAN STYLE=3D'font-siz=
e:10pt'>What happens if the statement is on a single line?<BR>
</SPAN></FONT><FONT SIZE=3D"2"><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN S=
TYLE=3D'font-size:9pt'><BR>
-- <BR>
Bob Greenblatt [MVP], Macintosh<BR>
bobgreenblattATmsnDOTcom</SPAN></FONT></FONT><FONT FACE=3D"Lucida Grande"><SP=
AN STYLE=3D'font-size:10pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>


--B_3343052257_1929720--

0
Reply Bob 12/7/2009 10:37:37 PM


Hi Bob, <br><br>Actually, the statement is on just one line.  I broke it in the post so it fit in the text box. <br><br>Curiously, I found a sort-of workaround for the problem.  If I do not require declared variables in the Visual Basic editor preferences, the problem does not occur.  I can't figure how that has anything to do with the problem, but I tested a bunch and when that preference checkbox is checked I get the problem.  Checkbox cleared, no problem.   <br><br>Now I just have to turn off required variables before I step through a program, then turn them back on when I'm doing other stuff. <br><br>Thanks for your reply. <br><br>> On 12/7/09 3:11 PM, in article 59bae610.-1@webcrossing.JaKIaxP2ac0, &quot;Theodore_MH@officeformac.com&quot; <Theodore_MH@officeformac.com> wrote: <br>
>  <br>
> Version: 2004 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I'm trying to step through some simple code in a macro using the VB Editor step into command. I have a statement in the macro:  <br>
>  <br>
> Sheets(&quot;DATA&quot;).Move _  <br>
> Before:=Workbooks(&quot;Test.xls&quot;).Sheets(1)  <br>
>  <br>
> For some reason, this causes the Can't enter break mode message to pop up. �I can Continue, End or Help in the Popup. �Continue finishes the macro, but doesn't let me step through the remaining statements. �All the stuff I've found at google talks about ActiveX controls and extensibility add-in object model. �I'm not using any forms or controls in the workbook, so I can't imaging why this is happening. �If I step through the same code on Excel 2007 it works just fine--no can't enter break mode message. � <br>
> Any suggestions? <br>
> What happens if the statement is on a single line? <br>
>  <br>
> --  <br>
> Bob Greenblatt [MVP], Macintosh <br>
> bobgreenblattATmsnDOTcom <br>
>  <br>
>
0
Reply Theodore_MH 12/7/2009 11:06:37 PM

That usually means you have a spelling mistake somewhere (else!) in the code
module :-)

Cheers


On 8/12/09 10:06 AM, in article 59bae610.1@webcrossing.JaKIaxP2ac0,
"Theodore_MH@officeformac.com" <Theodore_MH@officeformac.com> wrote:

> Hi Bob, 
> 
> Actually, the statement is on just one line.  I broke it in the post so it fit
> in the text box. 
> 
> Curiously, I found a sort-of workaround for the problem.  If I do not require
> declared variables in the Visual Basic editor preferences, the problem does
> not occur.  I can't figure how that has anything to do with the problem, but I
> tested a bunch and when that preference checkbox is checked I get the problem.
> Checkbox cleared, no problem.
> 
> Now I just have to turn off required variables before I step through a
> program, then turn them back on when I'm doing other stuff.
> 
> Thanks for your reply.
> 
>> On 12/7/09 3:11 PM, in article 59bae610.-1@webcrossing.JaKIaxP2ac0,
>> "Theodore_MH@officeformac.com"  wrote:
>>  
>> Version: 2004 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I'm
>> trying to step through some simple code in a macro using the VB Editor step
>> into command. I have a statement in the macro:
>>  
>> Sheets("DATA").Move _
>> Before:=Workbooks("Test.xls").Sheets(1)
>>  
>> For some reason, this causes the Can't enter break mode message to pop up. �I
>> can Continue, End or Help in the Popup. �Continue finishes the macro, but
>> doesn't let me step through the remaining statements. �All the stuff I've
>> found at google talks about ActiveX controls and extensibility add-in object
>> model. �I'm not using any forms or controls in the workbook, so I can't
>> imaging why this is happening. �If I step through the same code on Excel 2007
>> it works just fine--no can't enter break mode message. �
>> Any suggestions?
>> What happens if the statement is on a single line?
>>  
>> --  
>> Bob Greenblatt [MVP], Macintosh
>> bobgreenblattATmsnDOTcom
>>  
>> 

 --

The email below is my business email -- Please do not email me about forum
matters unless I ask you to; or unless you intend to pay!

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:john@mcghie.name


0
Reply John 12/7/2009 11:52:57 PM

3 Replies
558 Views

(page loaded in 0.079 seconds)

Similiar Articles:
















7/23/2012 3:25:42 AM


Reply: