You can use the undocumented mata function numtobase26() to get the Excel column names. For example,
. local i = 1
. mata:st_local("col_num", numtobase26(strtoreal(st_local("i"))))
. di "`col_num'"
A
↧
Re: Export tables to Excel
↧