Forum Discussion
G_Whit-UK
6 years agoHelper II
Multiple Excel files, with multiple tabs
Hi I have a daily system generated Excel file which is saved in a single folder. Each file has multiple tabs (Data, Data1, Data2, etc) as the system caps the data reflected on each tab to 65,535...
mahoneypat
6 years agoMicrosoft Employee
Hard to provide M code with an example to work on. You've combined one tab from multiple workbooks, which auto generates a function. You can modify that function to start from the worksheet level (instead of the workbook level). You then modify your query to expand all the excel files, filter for all the Kind = Sheet and filter out any that contain "Summary", then invoke your worksheet function.
If that isn't enough help, you can provide two mock Excel sheets with multiple tabs, and I will send back some M code to demonstrate.
This video also demonstrates how to do this - https://www.youtube.com/watch?v=tYqFIVH-SmY
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat