I looked up this topic in the forum, but didn’t find anything. Maybe someone could help me on that.
Anytime I program on VBA, I repeatedly debug my code to find errors and omissions. When I find my error, I stop the macro. By doing so, objects (like Excel spreadsheets, other Databases, instances, etc) are kept in memory and running. Therefore, if I stop a macro in the middle of a debugging process many times, I arrive to a point in which the program cannot continue creating these objects or instances anymore. So, I should unload all these from memory.
Is there any internal VBA program to do so? Or should I locate all them through the Program Manager (as I do now)? How could I write something like:
Set ‘all instances opened’ = Nothing and close all objects.
Well, that’s all. I have the same question with varibales. Imagine I had a very long string matrix which I would like to clean in order to free up memory, is it enough to set vMatrix = “” ? To be clear, what I would like to do is simply kill the variable. I mean, up to a point I would like to get rid of it.
Thank you very much in advance.
Federico.