Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Run Batch Macro for Multiple Sheets per Excel File

shelbybradley
7 - Meteor

I am having trouble configuring a batch macro that will run on multiple tabs/sheets within one Excel file, then move on to the next Excel file and repeat the process, stacking each output after each iterative run, until every file in the folder is read.

 

A few things to note:

  • Each sheet/tab has the same structure
  • Each Excel file has the same tab names (and same structure)
  • The output for every run should have the same columns

 

I have the workflow down, just having trouble configuring for my needs. If anyone can upload a workflow that specifically indicates how to configure the interface tools, macro, and directory to run through each Excel tab/sheet until each file in the folder is read, that would be much appreciated!

 

I've attached sample excel files and my workflow.

 

Thanks!

3 REPLIES 3
gabrielvilella
14 - Magnetar

Your sheets do not match the same schema, just tried that in Alteryx. I recommend you use a combination of two macros as the workflow attached.

Qiu
21 - Polaris
21 - Polaris

@shelbybradley 

I am always using this macro to read the Excels by batch.

The are some empty columns in the file "Illustrative data (structure 3.2).xlsx", which is causing the schema different.

0308-shelbybradley.PNG

shelbybradley
7 - Meteor

@gabrielvilella 

@Qiu 

 

I added a select tool to the workflow deselect extra columns. Hopefully this is work for both data inputs.

Labels
Top Solution Authors