asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum Table notes when exporting to Excel with asdocx in Stata

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Eric Melse
    Participant
    Post count: 7

    Dear Attaullah,

    I am trying to add a note below a table and save that as an Excel file, like:

    sysuse auto , clear
    
    asdocx tabulate rep78 foreign, row font(Calibri) title(Some statistics) ///
           save(Auto_rep78_vs_foreign_$date.xlsx) replace
    
    asdocx , text(On the second row percentages are reported.) append fs(10)
    
    * But I get an error after the second call to asdocx:
     asdocx , text(On the second row percentages are reported.) append fs(10)
    
    , is not a valid command name

    Maybe you can explain what I am doing wrong here (I tried to follow the instructions in the help file).
    Best regards,
    Eric

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Prof. Melse
    The text option works only with the docx files. If you want to add notes to the table, you can use the notes(my notes are here) option.

    asdocx_update
    sysuse auto
    asdocx sum, notes(My table notes are here) replace save(Myfile.xlsx)
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.