I need VBA code to upload file on google drive

joedhk

New Member
Joined
Jan 19, 2019
Messages
11
Hi, does any one know how to upload file from PC to Google drive using VBA code.If any one have any idea please share.Thank you.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Have you tried doing it manually with the Record Macro option enabled, then examining the recorded code to pick out the relevant commands?

That's how I found out how to upload a file to Microsoft OneDrive.
 
Upvote 0
Have you tried doing it manually with the Record Macro option enabled, then examining the recorded code to pick out the relevant commands?

That's how I found out how to upload a file to Microsoft OneDrive.
Hi, I have tried that and it is not working for me.
 
Upvote 0
Hi, does any one know how to upload file from PC to Google drive using VBA code.If any one have any idea please share.Thank you.
You need to implement Google Drive API.
Unfortunately, Google does not provide any client library for VBA, so I have written one on my own.
For example, design a simple userform that:
  • Uploads/download file.
  • Lists all Google Drive files in tree view.
1678979420800.png


GoogleDriveAPI.xlam
 
Upvote 0
You need to implement Google Drive API.
Unfortunately, Google does not provide any client library for VBA, so I have written one on my own.
For example, design a simple userform that:
  • Uploads/download file.
  • Lists all Google Drive files in tree view.
View attachment 87660

GoogleDriveAPI.xlam
Hi, your shared file no longer exist. can you upload it again please.
 

Attachments

  • error.png
    error.png
    9.5 KB · Views: 7
Upvote 0

Forum statistics

Threads
1,215,459
Messages
6,124,945
Members
449,198
Latest member
MhammadishaqKhan

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