Solved

Memory MGMT in Excel VBA ???

Posted on 2007-04-03
3
782 Views
Last Modified: 2012-05-05
How do I clean up memory in Excel VBA? I've tried setting objects to "Nothing" but I get an error stating that this is an invalid use of an object.

My VBA Macro calls a third party API which returns numerous strings that are huge in size. The Excel workbook end up taking up 60-80 mb of RAM. How can I get excel to release all objects?
0
Comment
Question by:jbravo223
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 18843252
If the API returns strings, then the only thing you can do is set the string variables equal to vbnullstring or "". Other than that and setting objects to Nothing, control over memory management is pretty much non-existent in VBA.
Regards,
Rory
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about a problem I had getting the GPS LocationListener working.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now