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
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
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
VBA/Excel does not have garbage collection, like old VB. Instead of GC, it uses reference counting. Memory is freed when you set a pointer to nothing (or when variable goes out of scope). Like in old VB it means that circular references are never freed.