VBA Memory Allocation on removed collection items
Posted on 2011-09-06
I have a nested collection of objects, where each meter object(parent) has a collection of interval objects(children). If I remove a meter from the the parent collection that has 30000 interval objects in it's interval collection, do I need to iterate through each interval to remove it from the child collection? Or can I just remove the meter object? Will Excel perform garbage collection on all child objects, or will this result in a memory leak?