Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default previous.copy

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!


  #2   Report Post  
Posted to microsoft.public.excel.programming
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!




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default previous.copy

Thanks for your response. I think your solution would work. However, I
changed the macro to yours but it is still slowing down after a few sheet, I
think the memory remained full and I need to clear it. Do you know how I can
clear it?
Regards,
"Mike Fogleman" wrote:

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!




.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default previous.copy

Sometimes saving the workbook will clear things out, but it seems that the
multiple copy/paste may not have been the prime issue, so there may be
something else bogging things down.

Mike F
"Myriam" wrote in message
...
Thanks for your response. I think your solution would work. However, I
changed the macro to yours but it is still slowing down after a few sheet,
I
think the memory remained full and I need to clear it. Do you know how I
can
clear it?
Regards,
"Mike Fogleman" wrote:

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!




.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find last row and copy previous row data Woodi2 Excel Worksheet Functions 1 February 18th 08 11:24 PM
copy previous row down 5 rows Rick Excel Programming 8 November 11th 07 06:15 PM
Need A Macro To Copy Previous Tab to New Tab MGC Excel Discussion (Misc queries) 8 August 15th 07 04:18 AM
copy from previous page Myriam Excel Programming 2 December 12th 05 10:05 PM
add rows with copy format of previous row hsg Excel Programming 2 March 4th 05 07:41 AM


All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"