Dear All,

I would like to export my results to an excel sheet. I tried this code below but it did not work.

Please could you suggest any other code or correct me if my code is wrong?

Thanks
JL

Code:
sort size
by size: asdoc sum lnout lnemploy value1 price1 costperempl, replace

this gives me the following:
Code:
(note: file Myfile.doc not found)
Click to Open File:  Myfile.doc

then I type in this code in my do-file
Code:
export excel as myfile.xlsx
it gives
Code:
. export excel as myfile.xlsx
variable as not found
r(111);