Hi,
despite closing the workbook I opened, quitting the Excel.application object and using set .. = Nothing, the Excel processus is not killed. So each time the code is called, a new instance of Excel is created and stack abobe the previous ones.
Any idea ?
Set objXL = createObject("Excel.Application"
...
objXL.Worksheets("Fr1".Activate
set oSheet = objXL.activeworkbook.activesheet
....
objXL.Worksheets("Fr2".Activate
set oSheet2 = objXL.activeworkbook.activesheet
....
set oSheet = Nothing
set oSheet2 = Nothing
objXL.activeworkbook.close
objXL.quit
set objXl = Nothing
Thanks
despite closing the workbook I opened, quitting the Excel.application object and using set .. = Nothing, the Excel processus is not killed. So each time the code is called, a new instance of Excel is created and stack abobe the previous ones.
Any idea ?
Set objXL = createObject("Excel.Application"
...
objXL.Worksheets("Fr1".Activate
set oSheet = objXL.activeworkbook.activesheet
....
objXL.Worksheets("Fr2".Activate
set oSheet2 = objXL.activeworkbook.activesheet
....
set oSheet = Nothing
set oSheet2 = Nothing
objXL.activeworkbook.close
objXL.quit
set objXl = Nothing
Thanks