Outsheet Stata. See the official stata help for outsheet. Thus your syntax is absolutely not going to work as none of the elements you referenced are variable names.
Outsheet using auto txt noquote nonames replace without the noquote option the quotation marks will be retained the nonames options will exclude the generated variable name v1. Oftentimes we work with stata and other software for the same project. The only way to use outsheet to export anything not associated with a variable is put that thing into a variable.
The only way to use outsheet to export anything not associated with a variable is put that thing into a variable.
If so we can use the nolabel option and stata will output the numeric values not the labels as shown below. Outsheet is for exporting data as variables. Oftentimes we work with stata and other software for the same project. When this observation is exported to excel it becomes.