Array
Array
Code:
*net install http://www.stata.com/users/kcrow/tab2xl, replace sysuse auto, clear replace turn = round(turn,5) local row = 2 local empty = `row' + 1 putexcel set "AutoData.xlsx", modify sheet(Tabs) putexcel describe foreach var of varlist rep78 headroom turn { quietly: tab2xl `var' foreign using "AutoData.xlsx", row(`row') col(1) sheet(Tabs) putexcel describe quietly: tab `var' foreign, m local Varlab : variable label `var' display in red "Varlab: `Varlab'" quietly: putexcel B`row'="" quietly: putexcel (A`row':D`row'), merge quietly: putexcel (A`row'), hcenter border(all) fpattern(solid, gray) quietly: putexcel A`row'="`Varlab'", font(Calibri, 12, white) quietly: putexcel A`empty'="" local row = `row' + `r(r)' + 5 local empty = `row' + 1 } putexcel save
0 Response to Error opening Excel after using merge option on -putexcel- command
Post a Comment