When I try to execute a do-file writing a matrix to Excel including the row-names, I gen the following error
option rownames not allowed
r(198);
My test do-file looks like this:
____ start of do-file ______
putexcel set "Test.xlsx" , sheet(Test) modify
mat bp=1,2
mat rown bp = "Test"
putexcel A1=matrix(bp)
putexcel A2=matrix(bp), rownames
____ end of do-file ______
Only the first putexcel commando gets executed. The second putexcel commando (the one with the rownames sub-command) triggers the error message.
Executing the same 5 command lines from the command line runs without any problems.
I am using Stata MP 15 (64-bit) on a Windows computer.
Whar am I doing wrong?
Regards Kim
option rownames not allowed
r(198);
My test do-file looks like this:
____ start of do-file ______
putexcel set "Test.xlsx" , sheet(Test) modify
mat bp=1,2
mat rown bp = "Test"
putexcel A1=matrix(bp)
putexcel A2=matrix(bp), rownames
____ end of do-file ______
Only the first putexcel commando gets executed. The second putexcel commando (the one with the rownames sub-command) triggers the error message.
Executing the same 5 command lines from the command line runs without any problems.
I am using Stata MP 15 (64-bit) on a Windows computer.
Whar am I doing wrong?
Regards Kim
Comment