Power Query- Access one drive files

sanket_sk

Board Regular
Joined
Dec 27, 2016
Messages
140
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have small doubt in Power query.

I have files stored at One drive, files are getting updated every week.

Is there any way by which I can connect and update these file through power query (Desktop Excel File).

Sanket
 
I assume you can access the Onedrive source file from windows explorer? If so, create your query by accessing the local file (get data >> from file, etc.) After your query is created, replace the top line with the following:

Rich (BB code):
Source = Excel.Workbook(Web.Contents("File URL"), null, true),

To get the source URL, open the file on your computer. Go to file >> info At the top you will see a path that says something like "One Drive >>folder >> folder". You should see an option that says "copy path (if you dont see that, right click and you should get the option.) Paste the path into where it says File URL above. The URL must be in quotes. At the end of the URL you will see "?web=1" after the .xlsx. You need to delete this from the URL.
Thanks a lot for support , Relay appreciated
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,223,774
Messages
6,174,456
Members
452,566
Latest member
Bonnie_bb

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