Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Memory MGMT in Excel VBA ???

Posted on 2007-04-03
3
Medium Priority
?
799 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Six Sigma Control Plans

715 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