title: Autohotkey save excel file without seeing overwrite prompt
body: <p>I have a autohotkey script that saves the file to a backup location in sharepoint. I can save the file there fine but it keeps asking for a okay to overwrite prompt and I am wondering if it is at all possible to get rid of that.</p>
  
  <p>Code is listed below.</p>
  
  <pre><code>ExcelRefresh(File) { ; Function
  
  sharepointPath := "\\sharepoint\Location\SharepointCompleted.xlsx"
  oExcel := ComObjCreate("Excel.Application")
  oExcel.Visible := false
  oWorkbook := oExcel.Workbooks.Open(File) 
  oWorkbook.RefreshAll
  oWorkbook.Save()
  oExcel.ActiveWorkbook.SaveAs(sharepointPath)
  oWorkbook.Close(false)
  oExcel.Quit()
  }
  </code></pre>