Thread: previous.copy
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mike Fogleman[_2_] Mike Fogleman[_2_] is offline
external usenet poster
 
Posts: 206
Default previous.copy

It looks like you are at the limits of your memory after a few copies, which
can happen. Instead of copying, why not just assign the values to the range?

ActiveSheet.Range("B10:H50").Value =
ActiveSheet.Previous.Range("B10:H50").Value

Mike F
"Myriam" wrote in message
...
Hello everyone,
I have been trying to find some logic to what's going on in a wkbk and I
can't see it.

Using 2003 I created a wkbk with 100+ sheets where users may copy from
the
previous sheet by clicking a button w/ the following code.

ActiveSheet.Previous.range("B10:H50").Copy ActiveSheet.range("B10:H50")

It works perfect and it does not slow down the workbook a bit.
I upgraded to Excel 2007 and once I get to the 10 sheet, the macro begins
to
run slower and slower until the wkbk eventually crashes.
Any ideas on why this may be happening?
Thanks for any suggestions!