Import/Export Data From Excel Stored on OneDrive

Harshil Mehta

Board Regular
Joined
May 14, 2020
Messages
85
Office Version
  1. 2013
Platform
  1. Windows
I am trying to build a tool which exports data from desktop excel to another excel file which is stored on OneDrive and vice versa.

Is this possible with VBA? If yes, then how should I go about it?
 

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.
Hi.

No need to build anything - Excel already has a tool built in called Power Query. From the Data Tab → Get Data → From FIle → From Workbook. Point it to the workbook you want and you're good. You have the option to apply any transformations you want to clean or shape the data, and all you need to do is hit the "Refresh" button on the same ribbon tab to automatically update the data and any applied transformations (if any).

1623072743566.png
 
Upvote 0
Hi.

No need to build anything - Excel already has a tool built in called Power Query. From the Data Tab → Get Data → From FIle → From Workbook. Point it to the workbook you want and you're good. You have the option to apply any transformations you want to clean or shape the data, and all you need to do is hit the "Refresh" button on the same ribbon tab to automatically update the data and any applied transformations (if any).

View attachment 40303
This will solve the problem for importing data. How about sending data to the file stored on OneDrive?
 
Upvote 0
You could always do the same for the OneDrive workbook and query the data in, but I have no idea how it would work if the query was circular, and now that I'm thinking about it, it seems rather redundant. What is the purpose of having the two different workbooks with the same data?
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,846
Members
449,194
Latest member
HellScout

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