Hi all,
I am currently trying to export a tabulate table for several observations to an excel sheet each.
However, its not giving me an excel file and says that the options are not valid.
Do you gave any idea on how I can adjust the code so that it works?
Best,
Lea
I am currently trying to export a tabulate table for several observations to an excel sheet each.
Code:
putexcel set "FilePath.xlsx", sheet(Descriptive) for each fruit in "Apple" "Pea" "Grape" { preserve keep if vegetable == "`fruit'" tab Apple putexcel A1=("`fruit") B1=("Freq.") C1=("Percent") using "FilePath.xlsx", replace putexcel A2=matrix(names) B2=matrix(freq) C2=matrix(freq/r(N)) using "FilePath.xlsx", modify restore }
Do you gave any idea on how I can adjust the code so that it works?
Best,
Lea
Comment