Use Variable as Sheet Name when exporting to Excel

Can you use a variable name for a worksheet name when exporting to Excel? either with the Export Wizard or Export to File? When I name it #VarName# my worksheet is named #VarName#. Is there some other syntax to use in this case?

Never mind - I got it - using a colon: Sheetname = :VarFieldName