Contributions
Re: How to save and close one excel file when multiple are open
I would suggest you to Create a workbook instead of using "app.ActiveWorkbook" and then try to save the Workbook & close it. let excelObject=Sys.OleObject("Excel.Application"); let filepath: C:\\users\\test.xlsx"; excelWorkbookObj = excelObject.Workbooks.Open(filepath); excelWorkbookObj.SaveAs(strexcelFileName); excelWorkbookObj.Close(); excelWorkbookObj = null;3.3KViews0likes5Comments