PC Review


Reply
 
 
FARAZ QURESHI
Guest
Posts: n/a
 
      5th Dec 2007
While executing the following code I am getting a message
"CANT EXECUTIVE CODE IN A BREAK MODE"

Sub FARAZCUT()
On Error GoTo ErrorHandler
Range("A4").End(xlDown).Select
ActiveCell.Offset(1, 0).Activate
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Exit Sub ' Exit to avoid handler.
ErrorHandler:
MsgBox "Copy Something First!"
End Sub

What might be the reason?
 
Reply With Quote
 
 
 
 
Bill Renaud
Guest
Posts: n/a
 
      5th Dec 2007
You mean:
"Can't execute code in break mode"

This is correct. While you have a breakpoint set and you are
single-stepping through that code, you cannot run another macro.

You need to finish single-stepping through the code where the breakpoint
is, then set a new breakpoint somewhere else and start debugging that code.

--
Regards,
Bill Renaud



 
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
XL2003 VBA: Debuging...can not break or run in break/step mode. Conan Kelly Microsoft Excel Programming 1 23rd Aug 2008 11:51 AM
Won't go into break mode ckerns@REfuse.net Microsoft Access Form Coding 1 15th Jan 2007 04:37 PM
Help with Break Mode =?Utf-8?B?TG9zdCBhbmQgTG9va2luZyBmb3IgSGVscA==?= Microsoft Excel Programming 3 1st Jun 2006 08:21 PM
Determine if in break mode =?Utf-8?B?bGpsZXZlbmQ=?= Microsoft VB .NET 2 19th Aug 2004 06:58 PM
Break mode not working Matt Microsoft Excel Programming 0 29th Jul 2004 09:01 PM


Features
 

Advertising
 

Newsgroups
 


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