LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Excel memory problem

Dear Experts,
I have received a new computer some weeks ago and I am
trying to run my old macros on it.
I have a problem with one of these, though. It looks
pretty straightforward, the macro loops through one wbook,
compares one cell at a time to a range in a second wbook,
and when/if it finds a match it copies some cells from the
first wbook in the second.
The code that is giving me problems is:

Workbooks(before).Activate
Workbooks(before).Worksheets("before STAR").Range(Cells(i,
Blastqtitycolumn + 2), Cells(i, Blastpricecolumn)).Copy

I don't know why, it takes a lot of time and apparently
memory to perform this (even if the range consists of only
approx. 5 cells!), so much that the macro stops because of
lack of memory.

Do you know why this is happening and if I could somehow
modify my code to make the macro easier to run?

Many thanks!
Kind regards,
Valeria

 
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
XL 2007 - Out of Memory - memory leak/bug? PCLIVE Excel Discussion (Misc queries) 0 March 23rd 09 03:31 PM
memory problem of Excel 2003 copy & paste LunaMoon Excel Discussion (Misc queries) 5 August 13th 08 01:51 PM
memory problem in Excel 2007 Tessa - South Africa Excel Discussion (Misc queries) 1 August 5th 08 01:31 PM
Freeing memory problem filippo Excel Programming 0 October 9th 03 10:06 AM
Memory/Font problem No Name Excel Programming 1 August 12th 03 07:32 PM


All times are GMT +1. The time now is 02:54 AM.

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

About Us

"It's about Microsoft Excel"