In reply to Véronique Bourcier.

Thank you, Véronique, for your addition. Indeed, one can use this technique for a shorter, but alas less colorful :) solution. This approach is also presented in Jane Eslinger's blog post How to control the name of Excel sheets when they are all created at once.

I would also refer our readers to the documentation on #BYVALn | #BYVAL(variable-name) substitution that allows output customization based on BY variable value.