Forcing Garbage Collection

calendar_today Asked Nov 21, 2009
thumb_up 9 upvotes
history Updated April 16, 2026

Question posted 2009 ยท +4 upvotes

Is there a way to force garbage collection in VBA/Excel 2000?

This question refers to the Macro language in Excel. Not using VB .NET to manipulate Excel. So GC.collect() won’t work

Accepted answer +9 upvotes

You cannot take advantage of garbage collection provided by the .NET Framework when using straight VBA. Perhaps this article by Eric Lippert will be helpful

Top excel-vba Q&A (6)

+9 upvotes ranks this answer #73 out of 136 excel-vba solutions on this site .