In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Repeat workflow for multiple sheets from a file

ppatane
8 - Asteroid

I have a file with Corporate, Finance, Tax, and Other sheets.  I want to run each through the same workflow and output each to its own sheet in the new output file.. ChatGPT says I should create a batch macro and use a Control Parameter to send each sheet name through, but I don't understand how to connect the input file to the control parameter and then connect that to the batch macro.  Help!

7 REPLIES 7
aatalai
15 - Aurora

If you have the same schema, you can use the dynamic input tool

alexnajm
19 - Altair
19 - Altair

You can read a list of sheet names in a workflow, then pass that list of sheet names into the control parameter part of your batch macro.

 

The batch macro will be the workflow you mentioned, with the Control Parameter connected to your Input Data to update the sheet

Screenshot 2025-10-21 072735.png

binu_acs
21 - Polaris

@ppatane Sample workflow attached 

binu_acs_0-1761060828421.png

 

ppatane
8 - Asteroid

Hi @binu_acs ,
A couple of things - I see when you ran it, you got three different files, I go 3 of the same.  But I am trying to get all the sheets to export to the same file. Would I need to get a Block Until Done in there somewhere?  I am on point with both you and @aatalai , I just don't know how to open the appropriate sheets from the input file, work on it and then save each sheet to the same output file.  This is what I'm getting using the Dynamic Input Tool

ppatane_0-1761062178051.png

 

binu_acs
21 - Polaris

@ppatane , you want the output in a different file with the same sheets with data? is it like creating a new copy of the same file?

binu_acs
21 - Polaris

@ppatane I  updated the workflow to create a new file and save the Excel sheets as it is

binu_acs_0-1761062689222.png

 

ppatane
8 - Asteroid

@binu_acs There will be intermediate steps from input to output

Labels
Top Solution Authors