Hi All,
Long time reader, first time poster. I've been banging my head against a wall trying to get the new
command to do what I want: export multiple large tables (ten variables, for which I calculate the mean and median for two different datasets by combinations of over a dozen categorical variables) into an excel file so that I can further manipulate the contents (bar graphs of ratios of original to matched variable means and medians, by over a dozen categories). For years, I did this using
,
and
, combined with
loops. I would then copy and paste the csv files into my excel file. The new table command, combined with collect export looks like it should be able to automate the process. However, when I run my program, I eventually hit an error because each collect export command spawns multiple putexcel format commands. Example, below:
If I delete the spreadsheet and start fresh, I get halfway through the program before I hit an error. After that, and attempt to write to the file kicks out that error. Based on my research, I am hitting the excel limit on number of formats within a file.
My question is how do I get
(or
) to paste table contents without adding formatting (which I don't want or need for my purpose)? Or is it back to
, etc?
Best
Tom
Long time reader, first time poster. I've been banging my head against a wall trying to get the new
Code:
table
Code:
tabstat
Code:
tabstatmat
Code:
mat2txt
Code:
forval
Code:
collect export qc_ENIGH20_ENUT19_v$version.xlsx, sheet(x) cell(A1) /// modify noopen noisily . version 17 . putexcel set `"qc_ENIGH20_ENUT19_v4.xlsx"' , modify sheet(x) . putexcel A1 , border(right,thin,) could not write border() format to file
My question is how do I get
Code:
collect export
Code:
putexcel
Code:
tabstat
Best
Tom
Comment