ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Useful macros for inputting and outputting data more easily

Andrew-Alteryx
アトム

Sharing some useful macros 

 

1. Full Path: 

      Purpose - Retrieve every file path for every tab and every file in a given folder, specified using the directory tool as seen. 

      Instruction - Connect the macro to the directory tool. Choose field: FullPath in the macro. 

 

2. Multiple sheets input:

      Purpose - This input will open the file by converting the file path. Useful if you wish to open multiple sheets in one input by only using one input tool.

      Instruction - Use the List of Sheet names input method in the input tool. Or use the above full path macro to retrieve all file paths. Use the formula tool to add the sheet name to the filepath. Add the macro and Choose field: FileName.

 

3. Multiple sheets input (any):

      Purpose - For many inputs which are similar in nature and you need them combined using union in one input. 

      Instruction - Save them all in one location and use the Full Path macro (see above) to retrieve all the filepaths. Select this file path field in the macro to open and union all inputs together into one sheet.

 

4. Remove BAK files:

      Purpose - Removes all BAK files created in the specified folder location. 

      Instruction - Add a control container around your output. Add the BAK macro to the workflow and add a control container around it. Connect the control containers so the BAK macro will be performed after the output tool is ran. Use the formula tool to create the folder path of the output file. Select this field in the BAK macro.

2件の返信2
AlteryxMatt
Moderator
Moderator

Hello @Andrew-Alteryx!

I think these would be great additions to be posted in the Alteryx Gallery! The Gallery is a place for people to share helpful user-built tools and workflows. Let me know if you have any questions about Gallery or how to post there!

Matt Rotundo
Alteryx Community Moderator
abacon2
Alteryx
Alteryx

@Andrew-Alteryx Yes these all would be great additions to the gallery so other users can more easily download and use them.

 

Bacon

ラベル
トップのソリューション投稿者