User Defined Variables in MS query cause a problem to import data

S

snb

If I use user defined variables in MS query to import data into excel sheet,
the query executes but no data gets imported into the excel sheet.
If I get rid of the variable the results can be imported into the Excel sheet.
 
Top