Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Free Up More Memory or Reduce the amount <emory used in Excel 2003

Hello Tech Suppport,

I am developing macros in Excel 2003.

I wanted to know if there is another command that will free up more memory
in the excel program without having to use Application.ScreenUpdating?

Thank you for your help.

Rene

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Free Up More Memory or Reduce the amount <emory used in Excel 2003

Disabling ScreenUpdating does not free up memory, except perhaps memory
associated with refreshing the display.

Ensure you release your objects and particularly large amounts of data in
variables (which do not otherwise go out of scope) when done. There's not
much to suggest without knowing anything about your code and what problems
you are experiencing.

Regards,
Peter T

"Rene''48" wrote in message
...
Hello Tech Suppport,

I am developing macros in Excel 2003.

I wanted to know if there is another command that will free up more memory
in the excel program without having to use Application.ScreenUpdating?

Thank you for your help.

Rene'



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default Free Up More Memory or Reduce the amount <emory used in Excel 2003

One suggestion is to remember to release variables when not needed.
For example, if you...
Set strMyVariable = "Hello"
when you're done, don't forget to...
Set strMyVariable = nothing

--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"Rene''48" wrote:

Hello Tech Suppport,

I am developing macros in Excel 2003.

I wanted to know if there is another command that will free up more memory
in the excel program without having to use Application.ScreenUpdating?

Thank you for your help.

Rene

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Free Up More Memory or Reduce the amount <emory used in Excel 2003


Set strMyVariable = "Hello"
when you're done, don't forget to...
Set strMyVariable = nothing


This is applicable only to public variables. With local variables
(declared within a sub), all memory is released when the variable goes
out of scope.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




On Wed, 28 Jan 2009 13:47:01 -0800, Gary Brown
wrote:

One suggestion is to remember to release variables when not needed.
For example, if you...
Set strMyVariable = "Hello"
when you're done, don't forget to...
Set strMyVariable = nothing

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default Free Up More Memory or Reduce the amount <emory used in Excel 2003

Another thought is to be congnizant of the types of variables you are using.
Integers use less bytes than Long or Single which use less bytes than Double
or Currency which uses less bytes than Strings which use less bytes than
Variant, etc.
--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"Rene''48" wrote:

Hello Tech Suppport,

I am developing macros in Excel 2003.

I wanted to know if there is another command that will free up more memory
in the excel program without having to use Application.ScreenUpdating?

Thank you for your help.

Rene



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Free Up More Memory or Reduce the amount <emory used in Excel 2003

No matter how much memory could be saved, I would always recommend using Long
(not integer) and Double (not Single).

I think that there's a better chance of stopping a worse error.

Gary Brown wrote:

Another thought is to be congnizant of the types of variables you are using.
Integers use less bytes than Long or Single which use less bytes than Double
or Currency which uses less bytes than Strings which use less bytes than
Variant, etc.
--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown

"Rene''48" wrote:

Hello Tech Suppport,

I am developing macros in Excel 2003.

I wanted to know if there is another command that will free up more memory
in the excel program without having to use Application.ScreenUpdating?

Thank you for your help.

Rene


--

Dave Peterson
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
How do I reduce the amount of columns in a sheet? D_N_A Excel Discussion (Misc queries) 12 April 2nd 23 07:10 PM
Getting Amount Free Disk Space On A Drive mrclinker Excel Discussion (Misc queries) 2 May 12th 06 01:16 PM
ADO Recordset using Excel as a database. Can't free the memory once opperation is over? Denis Béland Excel Programming 10 January 3rd 05 10:24 AM
Way to free memory as I input lines from a file? Steven Douglas Excel Programming 1 September 2nd 04 12:58 PM
free up memory by deleting variables clui[_11_] Excel Programming 4 December 11th 03 01:10 AM


All times are GMT +1. The time now is 07:38 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"