Code: Select all
...
Set EXCAPP = CreateObject("Excel.Application")
Set EXDOC = EXCAPP.Workbooks.Open("C:\SERVIZIO\EXPORT\TEST_LISTINO_R.xlsx")
Set WS = EXDOC.Worksheets("FOGLIO1")
EXCAPP.Visible = False
...
To the end of code, to be sure, i need to close all object or only to set nothing all variable?