Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Change File Name without losing formatting for excel sheet with many tabs.

Warcry
7 - Meteor

Using a template to append data to multiple tabs with formatting. Is it possible when it finishing writing that I can change the file name? The WF does not have to be connected, it can be a separate process.

 

Formula tool has not done it for me. CMD tool, I don’t believe I can send a rename-item script to rename.

 

Directory tool maybe, I haven't been able to figure this tool out.  

9 REPLIES 9
Qiu
21 - Polaris
21 - Polaris

@Warcry 
I think we can use Run Command to change the file name after output.

0420-javiwood.PNG

Maskell_Rascal
13 - Pulsar

Hey @Warcry 

 

I think that @Qiu already has you covered, but here is a similar scenario I answered awhile ago. This solution uses a dynamic input and list of filenames to be generated, copies and saves each file to an output folder, and finally runs the workflow and outputs the data to each newly created file. 

 

Solution: https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Outputting-multiple-excel-files-using-...

 

Thanks!

Phil

 

 

Warcry
7 - Meteor

This works too. Thanks. 

Warcry
7 - Meteor

Quick and short solution that I can easily attach to any workflow. Perfect!!

Qiu
21 - Polaris
21 - Polaris

@Warcry 

Glad to helo and thank you for the accept mark. 😁

sanketkatoch05
8 - Asteroid

Hi all, 
Even I'm trying to apply this solution to my workflow, but I'm getting an error: The file "C:\Users\........\Temp\11\RunCommand.bat" is not a known format. 

Can you guys please help. 
Thanks, 

sanketkatoch05
8 - Asteroid

Found out the reason why for my above query. 

raghusrealm
8 - Asteroid

@Qiu 

 

Thank you for sharing the above post and I tried your workflow and steps. But, I'm getting the below two errors.

 

raghusrealm_0-1631105635972.png

 

I pulled the path using the  "FileGetDir()" formula in the formula tool.

 

On the 2nd error, the excel file is not open but i'm still getting this error.

 

Any suggestions.

 

Regards,

Raghu

Qiu
21 - Polaris
21 - Polaris

@raghusrealm 
if possible, can you upload your modified version? 😂

 

Labels