PowerQuery - Change Sheet Source based on Data Validation

Ellendigitl00

New Member
Joined
Oct 23, 2024
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I have an Excel file with 12 sheets, representing 12 months of a year ("JAN", "FEV", "MAR", etc). In each sheet I have 3 tables.
I also have a cell with Data Validation with the names of the sheets.

I want to change dynamically the Source of PowerQuery based on the selection of the Data Validation.
Basically if I choose "JAN" on Data Validation, the Query should go to that Sheet and upload the 3 tables of Sheet.
To do that I know I should change some sort of code in Advanced Editor, but Excel programming isn't quite easy to me....

If anyone could help, I appreciate it.
Thanks in advance!
 

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top