Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Export Stata Results to Word using Tabout

    Dear Statalisters,

    I wish to export the results of the tabulate command to a Word file using the tabout command. For example:


    Code:
    sysuse auto
    tabout foreign using "TabForeign.docx"


    STATA seems to have no problem generating the Word file since I can find it in my working directory. However, there is a problem when I try to open the file. I am getting the following error message over and over again: "We're sorry. We cannot open TabForeign because we found a problem with its content."

    Can anyone help me on this? Thank you for any help you can offer.

    Kind regards,

    Eline



  • #2
    While someone might help you with the taboutprogram, let me show how you can export tabulation results to MS Word using asdoc, which can be downloaded from SSC. The latest version of asdoc creates really good tables from the tab command. This beta version is available on my website.
    Code:
    net install asdoc, from(http://fintechprofessor.com) replace
    
    sysuse nlsw88, clear
    
    * One-way tabulation
    
    asdoc tab industry, replace
    Click image for larger version

Name:	one way.png
Views:	1
Size:	53.4 KB
ID:	1478148

    * Two-way tabulation
    Code:
    asdoc tab industry collgrad , replace
    Click image for larger version

Name:	two way.png
Views:	1
Size:	63.0 KB
ID:	1478149

    You can read more resources related to asdoc here on my website.
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

    Comment

    Working...
    X