Hi all,

I want to export different results to different sheets of one excel file rather than to create different excel files
My code to export results to different excel files is as below

Code:
clear
*coding...;
esttab m1 m2 m3 m4 using "H:\18th_June_fixed\22nd_July\result.file1.csv",star(* 0.1 ** 0.05 *** 0.01) ar2 title(" **RD**" )  keep(covariates)
clear
*coding...;
esttab m1 m2 m3 m4 using "H:\18th_June_fixed\22nd_July\result.file2.csv",star(* 0.1 ** 0.05 *** 0.01) ar2 title(" **ID**" )  keep(covariates)
So, in this case, STATA will generate two different excel files named result.file1 and result.file2 in folder H:\18th_June_fixed\22nd_July\ .

What I want is to export these two files to one file. For example, the result 1 will be in sheet 1 of file result, the result 2 will be in sheet 2 of this file result.

Thanks in advance.