Community Halloween is live until October 31st! Complete any 2 quick activities to earn the 2025 Community Halloween badge. Feeling brave? Check out the activities here

General Discussions

Discuss any topics that are not product-specific here.
SOLVED

How to copy and rename an Excel file using Run Command while preserving formatting

theonlytej
5 - Atom

Hi everyone, I’m trying to create an Alteryx workflow that copies an existing Excel file and renames it, while keeping all original formatting (e.g., cell colors, styles, pivot tables, etc.).

3 REPLIES 3
KGT
13 - Pulsar

All of the above solutions involve reading it in and writing it out, which is necessary if you want to affect even one cell. If you are purely trying to do a file copy operation, nothing with the data, then the Run Command will be the way using a .bat file. However, it's an operation that can be done through Alteryx that helps to complete the solution, whereas if this is the main thing you need to do, then there may be other ways that suit than Alteryx.

 

Take a look at these posts for some info on using Run Command. They are slightly different to your request, but it'll be similar. The "work" is within the .bat file, whether that's written out of Alteryx or in Notepad.

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamic-Rename-a-formatted-fil...

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Delete-bat-files-after-running...

 

Labels