Storing value of variable, rather than variable itself

So I have a macro that at the end will write to another CSV file. However, one of the CSV file fields displays the name of the variable itself, rather than the value of the variable. How do I ensure that the CSV file saves the variable’s value?

Use ${variablename} (the ${...} are important)

Hey, I tried this, but now it’s just printing out literally {variablename}, instead of the actual value. Is it perhaps because my variable has a leading ?