I am using collect to export a table to Excel. I have a long table note that I would like to break up into multiple lines, either by inserting manual breaks or by having the note wrap with the table width. I'm able to insert a manual break using {break}, but the line break doesn't carry over when exporting to Excel. Any advice would be appreciated.
I've provided example code below. My actual table is much more complicated, and I'm not using dtable or etable.
I've provided example code below. My actual table is much more complicated, and I'm not using dtable or etable.
Code:
sysuse auto, clear
collect clear
collect: mean weight
collect: mean length
collect note "Line 1 {break} Line 2"
collect layout (colname#result[_r_b _r_se])
collect export auto.xlsx, replace

Comment