VBA XML scrape, can you access a protected webpage (Power BI on Cloud)

Johnny C

Well-known Member
Joined
Nov 7, 2006
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
We have a corporate Power BI MIS, which is hosted on the Power BI cloud. When you log in it picks up your credentials from your PC so there's no actual login needed but you have to go through several access screens which validate you.

I'm trying to collect data from BI as the data has to go into Excel for annotation then into Powerpoint.
It's a bit archaic I know, pulling stuff of an MIS to make a powerpoint slide but that's how they do things here (I'm a humble contractor and organisational modernisation isn't in my contract :))

Can the authorisation be done in VBA? I've tried scraping the report using Internet Explorer (which pulls nothing back) and Xml (which throws an "Access is denied" error. Both use 'new' instances.

Assuming you can't do that, can you access an open instance of Explorer with VBA? So I open BI on Explorer. There's a host of drop down filters, which let me pick departments and teams, if I filtered the data it would be handy if Excel could access the current instance of Explorer to scrape the tables.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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