ContributionsMost RecentMost LikesSolutionsRe: Saving an Excel file I tried the code. It is still saving the file under 'My Documents' folder with the same file name and it doesn't replace the previously existing file. It saves only if there is no file with the same name under 'my Documents'. Re: Saving an Excel file I have also tried to use Book.SaveAs(filepath) . It is giving an error -- 'Cannot access read-only document 'dealImports.xlsx'. Please refer the code. The function has few parameters. function updateExcel(fileName, sheetName, arrayStartDate, arrayEndDate) { var book; var filepath=Project.Path+fileName; var app1 = Sys.OleObject("Excel.Application"); app1.DisplayAlerts = false; book = app1.Workbooks.Open(filepath); var sheet = book.Sheets(sheetName); var rowCount = sheet.UsedRange.Rows.Count; Log.Message('Row Count '+rowCount); var j=0; for(var row = 2; row <=rowCount+1; row++) { Log.Message('Trade Start Date -- '+arrayStartDate[j]+ ', Trade End Date --' +arrayEndDate[j]); sheet.Cells.Item(row, 7).Value = arrayStartDate[j]; sheet.Cells.Item(row, 8).Value = arrayEndDate[j]; if(row==arrayStartDate.length+1) { break; } j=j+1; } book.Save(); app1.Quit(); } Re: Saving an Excel file Hi, I am using the similar code which you have suggested. However, a new excel file is getting created and saved in 'My Documents' folder instead of the changes being saved in the same file. Please suggest. Does TestComplete support Mainframe application build using COBOL or Rexx? Please suggest if the mainframe applications which are build using COBOL and rexx can be supported by TestComplete. Application like IBM CICS. Does TestComplete support Itron EE(Meter Data Management) application automation? I want to automate Itron EE(Meter Data Management) application using test complete. Please suggest the scripting language and there are few .Net components in the application. Few tree node components are not being identified.