Hello,
I have a large program in Stata 14 that uses putexcel to output my data into nicely formatted tables and graphs on multiple tabs. I have run into two issues, and they happen at random--they are not due to an error in my code.
1. Sometimes after opening my excel file and saving it, when I try to re-open the file, I get an error message and all of my data is gone and the majority of the formatting is gone. It's like the file self-destructs.
2. Some of my formatting doesn't work, at random. For instance, I have bold text, and sometimes the text does not appear bold. But when I click on the cell, the toolbox at the top indicates the cell is bold. Likewise, I have numbers that I round to two decimal places using "number_sep_d2," and sometimes they don't appear rounded in Excel.
My code does not give me errors related to these issues. One of my theories is that I'm formatting too much from Stata. Has anyone else ran into something similar with putexcel?
Thanks
I have a large program in Stata 14 that uses putexcel to output my data into nicely formatted tables and graphs on multiple tabs. I have run into two issues, and they happen at random--they are not due to an error in my code.
1. Sometimes after opening my excel file and saving it, when I try to re-open the file, I get an error message and all of my data is gone and the majority of the formatting is gone. It's like the file self-destructs.
2. Some of my formatting doesn't work, at random. For instance, I have bold text, and sometimes the text does not appear bold. But when I click on the cell, the toolbox at the top indicates the cell is bold. Likewise, I have numbers that I round to two decimal places using "number_sep_d2," and sometimes they don't appear rounded in Excel.
My code does not give me errors related to these issues. One of my theories is that I'm formatting too much from Stata. Has anyone else ran into something similar with putexcel?
Thanks
Comment