title: How to export multiple set of regressions into one Excel workbook using either outreg2 or esttab?
body: <p>I have multiple sets of regressions that need to be presented in different tables. I wonder if there is a way to export multiple set of regressions into one Excel workbook using either <code>outreg2</code> or <code>esttab</code> or some other package?</p>
  
  <p>For example, I run 100 regressions using <code>esttab</code>; then I want to present them in 25 different tables with four regressions in each table. The following format of code allows me to export to 25 different csv files:</p>
  
  <pre><code>esttab using "$output\output1.csv", se stats(N ymean r2_a) replace
  </code></pre>
  
  <p>However, I want to have all the 25 tables in one workbook with 25 tabs. It is possible to copy-paste the tables if the number of output files is not big, but that's not the case for me. </p>