Forcing Garbage Collection
问题 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 回答1: 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 回答2: You can't force GC in VBA, but it's good to set to Nothing the global variables. The article mentioned by kd7 says it's useless to set to Nothing the