How do I modify a Power Query URL using an excel sheet dropdown?

Bennettski

New Member
Joined
Mar 7, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello, I have been searching and tried a few options but cant find an answer.
I have a workbook and have used the Get Data function from Web to grab info. The web info loads 9 new tables into my worksheet in 9 new tabs named Table 0 to 8. From here my VBA uses this info to perform some calculations. This part all works fine.
The issue I have is that I need to change part of the URL each week to get the latest web data into my worksheet and overwrite the current info in the existing tabs. The only way I have been able to do this is to change the source in Power Query editor for all 9 tables which is a super long way around.
I'd like to be able to enter a new updated URL via a dropdown box to change and increment the _Round_1 part each week in the following URL using a dropdown box on sheet 1 of my workbook.

Power Query:
https://www.topsport.com.au/Sport/Aussie_Rules/AFL_-_Round_1/Matches

Any help would be greatly appreciated.
Cheers.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,214,821
Messages
6,121,762
Members
449,048
Latest member
excelknuckles

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