title: Export regression results in Excel
body: <p>After running a regression, I want to save the output (variable names, coefficients, standard errors and P values) in an Excel spreadsheet. However, when I attempt to do this, I just get the coefficients. </p>
  
  <p>Below is my code attempt:</p>
  
  <pre><code>local regressors x1 x2 x3
  logit y `regressors'
  putexcel set output_table.xlsx, replace
  putexcel A1 = matrix(e(b))
  </code></pre>
  
  <p>Please note that I am using a computer that does not have access to the internet, so  I cannot use external libraries.</p>