asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum Results are appended to the same file | asdocx

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Ronen Avraham
    Participant
    Post count: 1

    I wrote:

    bys activityear: asdocx sum amtfunded2 if clientstate1=="Maryland"

    And Stata wrote back:

    bys activityear: asdocx sum amtfunded2 if clientstate1=="Maryland"
    (File C:\Users\ra22397\Documents\Arkansas.docx already exists, option append was assumed)

    I did not ask it to save it in a file, and it used the last opened file and appended it.

    Could you please fix it?

    Attaullah Shah
    Moderator
    Post count: 74

    The default setting in asdocx is to append results to the same file which you used previously in the save() option. If you did not use the save() option, then the default name of “Myfile.docx” is used.
    If you want to save the results to a new file, use the save() option with filename in the brackets. So, to write results to Results2, the code will be:

    bys activityear: asdocx sum amtfunded2 if clientstate1=="Maryland", save(Results2)
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.