I have a variable with different values and I want each of those values in a different row of an excel file. This is the code that I came up:

Code:
local lab1 : label variable_name 1
matrix matrix[1,1] = "`lab1'"
variable_name goes from 1 to 50 so in a loop should output what I want. However there's a type mismatch (r(109)) when I run it. Any suggestion?