Forum Discussion
Ravik
10 years agoSuper Contributor
Hi, First you have to check in your Test is there any process is running for excel, If its running close it. Do one thinng - Add Excel process in Name Mapping and check like below - Sub CloseExcel Set objExcelKill = NameMapping.Sys.EXCEL Do while objExcelKill.Exists = True objExcelKill.Terminate Loop Set objExcel = CreateObject("Excel.Application") objExcel.DisplayAlerts = False objExcel.Visible = True End Sub This may help you.