We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Inputting folder of multiple excel files with one uniquely named tab each

JStuhler
6 - Meteoroid

I used this post CS Macro Dev: Reading in Multiple Files with Different Field Schema - Batch Macro and have built a Batch Macro to read multiple xlsx files from a folder and it works well. The issue is I need it to read a folder of .xslx files that all have one tab each, and each of them are uniquely named. It tells me "No sheet specified, you must specify a sheet."

 

 

4 REPLIES 4
binuacs
21 - Polaris

@JStuhler try the batch macro

 

JStuhler
6 - Meteoroid

Thanks for your reply! This batch macro works great to bring in all sheets into one file from the directory. Is there a way to do this same process, but bring in one sheet from the directory at a time? I need to import one sheet from the directory at a time and run it through other macros before it's joined with the others at the end. 

binuacs
21 - Polaris

@JStuhler my understanding is that you need to read one input file at a time and import one sheet from that file and run your macro for further processing? 

attaching a sample workflow

 

1. macro1 - reads the file names and sheet names from the given directory

2. macro 2 - combines the data --> inside the second macro you can add your macro for further processing

image.png

 

 

JStuhler
6 - Meteoroid

That worked perfectly! Thank you for your help!

Labels
Top Solution Authors