PC Review


Reply
Thread Tools Rate Thread

Code interrupted

 
 
mzjamez
Guest
Posts: n/a
 
      17th Jul 2008
I have the following code and everytime I run it I get a debugger message
that says the code is interrupted. I'm not sure how to correct this. Can
anyone help?

Sub COPY()
'
' COPY macro
'

'select area and clear
Range("C6").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
'select area and copy
Range("A6").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.COPY
'select area and paste special values
Range("C6").Select
ActiveWindow.SmallScroll Down:=-12
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
'select area and copy
Range("A1").Select
Application.CutCopyMode = False
Selection.COPY
'select area and paste special values multiply
Range("C6").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlMultiply, _
SkipBlanks:=False, Transpose:=False
End Sub

 
Reply With Quote
 
 
 
 
Paul B.
Guest
Posts: n/a
 
      17th Jul 2008
Look a few posts previous to yours, titled "Alien Abduction of VB: Code
execution has been interrupted". It's about the same problem.

Paul

"mzjamez" wrote:

> I have the following code and everytime I run it I get a debugger message
> that says the code is interrupted. I'm not sure how to correct this. Can
> anyone help?
>
> Sub COPY()
> '
> ' COPY macro
> '
>
> 'select area and clear
> Range("C6").Select
> Range(Selection, Selection.End(xlDown)).Select
> Selection.ClearContents
> 'select area and copy
> Range("A6").Select
> Range(Selection, Selection.End(xlDown)).Select
> Selection.COPY
> 'select area and paste special values
> Range("C6").Select
> ActiveWindow.SmallScroll Down:=-12
> Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
> SkipBlanks _
> :=False, Transpose:=False
> 'select area and copy
> Range("A1").Select
> Application.CutCopyMode = False
> Selection.COPY
> 'select area and paste special values multiply
> Range("C6").Select
> Range(Selection, Selection.End(xlDown)).Select
> Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlMultiply, _
> SkipBlanks:=False, Transpose:=False
> End Sub
>

 
Reply With Quote
 
jeninOk
Guest
Posts: n/a
 
      31st Jul 2008
I'm having the same problem and there was never anything installed to cause
this to start happening.

What is really happening and what can fix this bug?



"Paul B." wrote:

> Look a few posts previous to yours, titled "Alien Abduction of VB: Code
> execution has been interrupted". It's about the same problem.
>
> Paul
>
> "mzjamez" wrote:
>
> > I have the following code and everytime I run it I get a debugger message
> > that says the code is interrupted. I'm not sure how to correct this. Can
> > anyone help?
> >
> > Sub COPY()
> > '
> > ' COPY macro
> > '
> >
> > 'select area and clear
> > Range("C6").Select
> > Range(Selection, Selection.End(xlDown)).Select
> > Selection.ClearContents
> > 'select area and copy
> > Range("A6").Select
> > Range(Selection, Selection.End(xlDown)).Select
> > Selection.COPY
> > 'select area and paste special values
> > Range("C6").Select
> > ActiveWindow.SmallScroll Down:=-12
> > Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
> > SkipBlanks _
> > :=False, Transpose:=False
> > 'select area and copy
> > Range("A1").Select
> > Application.CutCopyMode = False
> > Selection.COPY
> > 'select area and paste special values multiply
> > Range("C6").Select
> > Range(Selection, Selection.End(xlDown)).Select
> > Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlMultiply, _
> > SkipBlanks:=False, Transpose:=False
> > End Sub
> >

 
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
Code execution has been interrupted ryan.fitzpatrick3@safeway.com Microsoft Excel Programming 3 6th Dec 2007 08:02 PM
Code execution has been interrupted =?Utf-8?B?Q3JhaWc=?= Microsoft Excel Programming 1 25th Jan 2006 07:19 AM
Code execution has been interrupted LAF Microsoft Excel Misc 0 5th Jan 2006 03:39 AM
Code Execution Interrupted =?Utf-8?B?TG9zdA==?= Microsoft Excel Crashes 1 6th Oct 2005 05:50 PM
Code Execution Has been Interrupted Adrian Microsoft Excel Programming 0 30th Jul 2004 10:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:05 PM.