Hi
I am new to alteryx. I need to Loop thru several excel files in a directory, create a new sheet called Settle on each file in the directory. I have created a workflow where I can pull in one file and join to my other data to populate a new sheet called settle. But I need this to be done for all the files in a directory. Can anyone assist?
Solved! Go to Solution.
Hi @D3Baker
You can achieve this with a very simple batch macro. A batch macro basically means 'do the thing inside the macro for each row in this input', so we can give it your list of files and it will repeat an action for each.
I have attached an example. If you would like to see what is happening inside the macro, right click and select 'Open macro'.
The key steps are as follows:
I recommend trying this out on a folder of test files before you use it on your real ones, and to keep a backup just in case.
You can find out more about Batch Macros here: https://community.alteryx.com/t5/Videos/Build-Your-First-Batch-Macro/td-p/52900
ok thank you. I will give it a try
Good luck! If it works for you, please can you mark as a solution so others can find it?
thank you this is helping me get my feet wet in the areas of working with Macros. My final goal really is to add this settle sheet to every file, but I need to join to another file to populate the settle sheet. so I would have to join on each file in directory with another file and populate the settle sheet with the appropriate data.
hope that makes sense
Again this has been very helpful
Debbie