ExcelAtEverything
Active Member
- Joined
- Jan 30, 2021
- Messages
- 351
- Office Version
- 2019
- Platform
- Windows
Hello Excel Jedis,
I'd like to make the location of the source folder of my query dynamic, so that the folder location can be changed easily without need to go into Power Query. I created a user table on a new sheet where the user can paste in the location of the source folder on their computer. A query then pulls that into PQ where I drill down & create a parameter out of it (called FolderPath). Here is a pic of how that cell in the table looks when a folder location is pasted into it (which of course is exactly how the parameter appears in PQ). The cell contains the path of the folder which holds all of the needed spreadsheets to make this sheet work.
Table entry:
I'd like to use the parameter FolderPath in my source code line of the query, but I can't seem to get it correct.
Here is the original source line:
Is it as simple as getting the syntax correct, or is there more to it than just replacing it with the parameter FolderPath? Sorry I can't send in XL2BB right now. Thanks for help.
I'd like to make the location of the source folder of my query dynamic, so that the folder location can be changed easily without need to go into Power Query. I created a user table on a new sheet where the user can paste in the location of the source folder on their computer. A query then pulls that into PQ where I drill down & create a parameter out of it (called FolderPath). Here is a pic of how that cell in the table looks when a folder location is pasted into it (which of course is exactly how the parameter appears in PQ). The cell contains the path of the folder which holds all of the needed spreadsheets to make this sheet work.
Table entry:
I'd like to use the parameter FolderPath in my source code line of the query, but I can't seem to get it correct.
Here is the original source line:
Is it as simple as getting the syntax correct, or is there more to it than just replacing it with the parameter FolderPath? Sorry I can't send in XL2BB right now. Thanks for help.