ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Question about releasing memory (https://www.excelbanter.com/excel-programming/288465-question-about-releasing-memory.html)

TBA[_2_]

Question about releasing memory
 
I imagine this is a question about housekeeping more than anything else,
but...

A friend told me that in VB and some other languages that when a macro or
script ends, that it doesn't release the memory held by object variables,
and that one has to "clean up the garbage" before closing the program. Is
Excel no exception? If I use a large amount of object variables in my
application, should I reset them before closing?

If anyone can decipher what I'm saying and say it better, by all means
please do. lol

-gk-



RWN

Question about releasing memory
 
"Set <object = Nothing"

--
Regards;
Rob
------------------------------------------------------------------------
"TBA" wrote in message
...
I imagine this is a question about housekeeping more than anything

else,
but...

A friend told me that in VB and some other languages that when a macro

or
script ends, that it doesn't release the memory held by object

variables,
and that one has to "clean up the garbage" before closing the program.

Is
Excel no exception? If I use a large amount of object variables in my
application, should I reset them before closing?

If anyone can decipher what I'm saying and say it better, by all means
please do. lol

-gk-





John Wilson

Question about releasing memory
 
TBA,

There's a lot of good information and links here regarding memory in Excel:
http://www.decisionmodels.com/memlimits.htm

John

"TBA" wrote in message
...
I imagine this is a question about housekeeping more than anything else,
but...

A friend told me that in VB and some other languages that when a macro or
script ends, that it doesn't release the memory held by object variables,
and that one has to "clean up the garbage" before closing the program. Is
Excel no exception? If I use a large amount of object variables in my
application, should I reset them before closing?

If anyone can decipher what I'm saying and say it better, by all means
please do. lol

-gk-






All times are GMT +1. The time now is 03:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com