title: Can't save and close a XLS file in Access/VBA application correctly
body: <p>I'm quite new in Access and VBA and trying to develop a simple code: export a table to a xls, open it, simple manipulations(formatting), save and close.</p>
  
  <p>But I'm getting the following message box during the process: <code>"A file named RESUME.XLW" already exists in this location. Do you want to replace it?"</code></p>
  
  <p>Choosing "Yes" will generate the xls file. But when I try to open it, the Excel runs in read only mode, and I don't understanding why.</p>
  
  <p>I'm using the following code:</p>
  
  <pre><code>Sub FormataExcelPadrao(caminhoExcel As String)
  
  Set arquivoExcel = CreateObject("Excel.Application")
  arquivoExcel.Workbooks.Open (caminhoExcel)
  
  With arquivoExcel
      For Each pagina In .Worksheets
          With pagina
              .Columns("A:Z").Autofit
              .Cells.Font.Size = "10"
              .Cells.Font.Name = "Calibri"
          End With
      Next pagina
  End With
  
  arquivoExcel.Save
  arquivoExcel.Close
  
  End Sub
  </code></pre>
  
  <p>Thanks in advance!</p>