Announcement

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

  • Export the list of variables with labels in Excel


    Dear all,

    what is the command to export the list of variables with variables labels in Excel (only variables names and their labels without value labels)?

    Thanks for your help.

    Best ragards

  • #2
    This will get you to a useful place.

    Code:
    describe, replace
    list
    export pos name varlab excel using "myvariables.xlsx", replace firstrow(varlab)

    Comment


    • #3
      Thanks Leonardo, When I try the command
      There is the following error message: export pos name varlab excel using "myvariables.xlsx", replace firstrow(varlab) export: unknown subcommand "pos" r(198) How ca I solve this problem? Thank you

      Comment


      • #4
        How can I solve the problem?

        Comment


        • #5
          Originally posted by Clarisse Nguedam View Post
          Thanks Leonardo, When I try the command
          There is the following error message: export pos name varlab excel using "myvariables.xlsx", replace firstrow(varlab) export: unknown subcommand "pos" r(198) How ca I solve this problem? Thank you
          I introduced a typo, my apologies. The command should be

          Code:
          export excel pos name varlab excel using "myvariables.xlsx", replace firstrow(varlab)

          Comment


          • #6
            Thanks Leonardo!

            Comment

            Working...
            X