Dear Statalisters,
I am trying to export several different frequency tables from Stata to Excel (in one file).
When using putexcel I always need to manually change the file name.
I tried "tab2xl", but somehow I always end up only with the frequency table of the last variable and not all of them
Could somebody help?
My Stata Code:
local row=1
foreach X of varlist gen edu inc emp age inv {
tab2xl `X' using frequency_tables, row(1) col(1)
}
Thank you very much in advance,
Christina
I am trying to export several different frequency tables from Stata to Excel (in one file).
When using putexcel I always need to manually change the file name.
I tried "tab2xl", but somehow I always end up only with the frequency table of the last variable and not all of them
Could somebody help?
My Stata Code:
local row=1
foreach X of varlist gen edu inc emp age inv {
tab2xl `X' using frequency_tables, row(1) col(1)
}
Thank you very much in advance,
Christina
Comment