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 clearing memory using VBA

Hi,

I have a problem with memory increasing in an instance of Excel. When excel
is first opened the memory is around 40k. There is a lot of VBA code running
macros to copy cells, connect to a database, retrieve etc etc

Each time a retrieve is done, which involves a large combination of actions,
the memory on the instance of excel increases 5 or 6 k. After 5 or 6 times
excel becomes slow, retrieves take longer and the only way to get rid of the
problem is closing excel completely. I have tried using

application.cutcopymode=false after copying data. There are also some global
variables and I have tried setting these to nothing but it has done very
little good. Is there a general piece of VBA code to clear the memory that
excel uses?

Thanks!

Nathan
 
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
Clearing Memory [email protected] Excel Programming 5 March 17th 06 01:21 AM
Clearing Memory [email protected] Excel Programming 1 March 16th 06 02:20 PM
clearing memory /clipboard drofnats[_2_] Excel Programming 1 December 7th 04 09:39 PM
Clearing Memory Jonny Excel Programming 2 December 7th 04 04:49 AM
Clearing Memory agter an update Keith[_11_] Excel Programming 1 April 15th 04 01:59 PM


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

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"