May I ask anyone of you knows any VBA code that can download an excel file in google drive. I am coding an excel program that refreshes its data whenever there is a new data dump present in a folder in my google drive.
Google Drive puts a local copy of files on your computer. Google Drive folder
The default local path is usually in the user's Documents and Settings folder
The code below opens an Excel file from the Google drive local folder.
Change the User, SubFolder, and File Name to suit.
Code:
Workbooks.Open "C:\Documents and Settings\[COLOR="#FF0000"]User[/COLOR]\My Documents\Google Drive\[COLOR="#FF0000"]MyFolder[/COLOR]\[COLOR="#FF0000"]MyFile.xlsx[/COLOR]"
Unfortunately, company restrictions won't allow me to install applications in my company issued laptop. I figured out I just have to directly download data from google drive.
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.