Share via

Power Query Auto Adding Sheets

Anonymous
2018-07-19T14:23:01+00:00

I have multiple excel sheets in a folder. I can easily reference this data and pull it all into one sheet using Power Query. However I would like to have a function (or something that will auto update when a new Excel file is added to the directory in File Explorer) that then takes the newly added Excel Workbook and adds it as a new sheet along with deleting some columns.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Lz365 38,201 Reputation points Volunteer Moderator
    2018-07-19T21:51:34+00:00

    Hey Joe

    I do understand +/- what you want to achieve. To set the correct expectations:

    • I provided the link to help you but never used that technic (doesn't frighten me though)
    • I don't have your data and a clear understanding of the end goal
    • This is a specific dev. assignment/task that requires investment + time

    Hope you will understand it's up to you to do it if you believe the investment makes sense from a bus. point of view.

    Although I'm not 100% but "However, I would want Column A, Column B, and Column C all on different sheets. For Example Column A on Sheet 2, Column B on Sheet 3, and Column C on Sheet 4" probably requires 3 separate (but similar) queries as you can't Load To… the same query output to different sheets

    Hope this helps & makes sense

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-07-19T17:14:54+00:00

    Thanks for the response Lz. Yes I am using Power Query in Excel 2016. I'll see if I can explain better using the example that you provided. In that example when both statements are turned to true I would like to create a new sheet. However, I would want Column A, Column B, and Column C all on different sheets. For Example Column A on Sheet 2, Column B on Sheet 3, and Column C on Sheet 4.

    Was this answer helpful?

    0 comments No comments
  3. Lz365 38,201 Reputation points Volunteer Moderator
    2018-07-19T15:06:38+00:00

    Hi Joe

    There are implications in your request I hope you understand… Assuming you run 2016 see Use VBA to automate Power Query in Excel 2016

    Was this answer helpful?

    0 comments No comments