Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.

General Discussions has some can't miss conversations going on right now! From conversations about automation to sharing your favorite Alteryx memes, there's something for everyone. Make it part of your community routine!

Export multiple tabs to separate text files

VasudhaSingh
5 - Atom

Can anyone help me to identify on how can i export multiple excel tabs to different text files. Like if i have 3 sheets in one excel so my output should be 3 text files. I am using a macro but its giving me the output in single text file not getting multiple text files as output

 

 

Emil_Kos
15 - Aurora

Hi,

 

You need to have a sheet name and the file name in the input files.This is a configuration of the input file if you will have a full path you will have information about sheet. 

 

Emil_Kos_0-1607683103422.png

 

in the output file you will be able to configure it to use this in order to prepare txt:

 

Emil_Kos_1-1607683278977.png

 

Remember that along the way you will need to manipulate the file name in order to output it as csv files.

 

If this is helpful for you? 

Qiu
16 - Nebula

@VasudhaSingh 
I hope the schema of the 3 sheets are same, otherewise things will get much more difficult.

1211-VasudhaSingh.PNG

echuong1
Alteryx
Alteryx

There are two ways to do this, the first is more simplistic and not as dynamic, but may work better if you have different schemas.

 

If you know which sheets you want to import and export, you can have an input tool - output tool combination for each. 

 

If you want to go the more dynamic route, or already have everything imported as one, you can use the "take file name from field" option in the output tool. You can choose which field you want to segregate the output with (in my case it's based on the input file name).

 

Hope this helps!

echuong1_0-1607696478745.png

 

Labels