Setting a variable to nothing makes it no longer refer to anything. It does nothing to that to which it had been a reference.
In the case of class instantiation, classes are typically destroyed when the reference count becomes zero.
But it is not the same with a reference to a running application. In this case you must explicitly close the application. (BTW: your postings will look better if you use the insert code button [[u]
#</u>]):
Code:
. . .
oExcel.Workbooks.Close
oExcel.Quit ' Or .Exit, .Close, etc. Youâll have to poke about.
Set oExcel = Nothing
. . .