To combine your workbooks into a single workbook using Power Automate, you can follow these steps:
- Sign into Power Automate and create a new Instant cloud flow.
- Choose Manually trigger a flow and select Create.
- Get all the workbooks you want to combine from their folder by adding an action and choosing the OneDrive for Business connector's List files in folder action. Use the file picker to select the "output" folder.
- Add an action to run the Return worksheet data script to get all the data from each of the workbooks using the Excel Online (Business) connector's Run script action.
- Finally, add an action to run the Add worksheets script on the new Excel file you created to add the data from all the other workbooks.
For optimizing your Excel workbooks, consider the following tips:
- Look through your workbook for memory-intensive formulas like LOOKUP, INDIRECT, and OFFSET, and try to reference only the necessary cells instead of whole columns.
- Limit the use of calculations across workbooks, as this can slow down performance.
- Clean up temporary files and check for excessive controls on worksheets that may affect performance.
These steps should help you combine and optimize your workbooks effectively.