Power Query VBA

Chefsohail

Board Regular
Joined
Oct 3, 2020
Messages
90
Office Version
  1. 365
Platform
  1. Windows
HI Team,

I have a set of URL's where i need to import the data from.

I have tried manually using power query and it works. However I need assistance with developing a VBA which pulls the details for all URL's in Column A. Removes the last 3 columns and then performs a Transpose on the result. Then use the first row as the header and data loads starting from Cell B2..

Can someone please guide how to do it, or if we have a code already in place..
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
There might be a way to do all with PQ.
Can you share some of the URLs? Can't guarantee but willing to give it a go.
 
Upvote 0
Thanx GraH for offering support, unfortunately due to the signed non disclosure agreement, i am not in a position to share the URL's... But if I atleast get the skeleton, I will able to workout something. I appreciate you helping me with this.
 
Upvote 0
You have a PQ that runs for each of the URLs, right?
So for each is a Keyword in PQ...
Turn your single solution into a function and apply it to a table column where you have all URLs.
Something like
Power Query:
let GetURL (URL as text) =>
let
Your code
in
LastStepOfYourCode
in
GetURL

Note I am assuming a few things here...
 
Upvote 0

Forum statistics

Threads
1,225,661
Messages
6,186,288
Members
453,348
Latest member
newbieBA

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