Can I export data to excel including variable name in the first row and label in the second row, and how is this done?
-
Login or Register
- Log in with
export excel ..., sheet(sheetname, replace) firstrow(variables) cell(A1) export excel ..., sheet(sheetname, modify) firstrow(varlabels) cell(A2)
sysuse auto, clear
preserve
drop in 1/l
set obs 1
export excel myfile.xlsx, sheet("one") first(var)
restore
export excel myfile.xlsx, sheet("one", modify) first(varl) cell(A2)
Comment