With the following, I'm able to export a dtable as a .docx without problem.
However, changing the export command to
or
both fail with an error: "file handle not found".
Any ideas on how to get the table to export to an excel file?
Code:
dtable i.rec_female i.rec_agegroup i.rec_bodypart i.rec_disp i.rec_transport, /// by(rec_selfharmgun, missing nototals) /// svy /// sample(, statistic(frequency percent)) /// factor(, statistics(fvrawfrequency fvpercent)) /// halign(center) /// export(tables/table01.docx, replace)
Code:
export(tables/table01.xlsx, replace)
Code:
export(tables/table01.xls, replace)
Any ideas on how to get the table to export to an excel file?
Comment