+ Reply to Thread
Results 1 to 11 of 11

Upload file to google drive

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Upload file to google drive

    Hello everyone
    I need a VBA macro that would enable me to upload a file to google drive..
    Thanks a lot for all great help I receive in this wonderful forum
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Upload file to google drive

    Maybe this will help:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Upload file to google drive

    Forgot to say, that creates a pdf file in the Google Drive.

    However, the principle is the same. Get the location of the Documents folder, edit it and change it to Google Drive. Then get the current workbook's file name and edit as required. If you want to save a copy of the .xlsm file, there's less to do and just use SaveCopyAs

    Regards, TMS

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Upload file to google drive

    Thanks a lot Mr. Trevor
    I didn't notice how to upload specific file to google drive .. I have a gmail account and there is Drive in google .. I need to upload any type of file to it
    Thank you very much

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Upload file to google drive

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Upload file to google drive

    Thanks for the instructions but it is still unsolved for me..
    I need to save or upload file to google drive

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Upload file to google drive

    Any help with this topic?

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Upload file to google drive

    What are you trying to save to Google Drive? The current file? Do you want to use SaveAs, or do you want to use SaveCopyAs? Or is it another Excel file? If it is another Excel file, is it open? And would you want to use SaveAs, or do you want to use SaveCopyAs? Or, if it is another file, of whatever type, where is it? And what type of file is it? So you'd need to locate it and copy it to the drive.

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Upload file to google drive

    Thanks a lot for reply
    I just need to copy any extension (any file with any extension) to Google Drive on my account ..as a kind of backup for my files
    If the file is already existed on Google Drive >> so the code to overwrite the old one after alert message
    Thanks advanced

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Upload file to google drive

    Well, I've explained how I determine the Google Drive location.

    Follow this link to cover copying files: http://www.rondebruin.nl/win/s3/win026.htm

  11. #11
    Registered User
    Join Date
    03-04-2019
    Location
    Texas, US
    MS-Off Ver
    MS Office 2013
    Posts
    1

    Re: Upload file to google drive

    Quote Originally Posted by TMS View Post
    Maybe this will help:

    Please Login or Register  to view this content.

    Regards, TMS
    -- SO I edited this code to match for my google drive- I ran the code and it did not give any errors, but it is not showing the saved file in my google drive folder.. can you please recommend a solution?

    Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Open a CHM or HLP file on a google drive from a vba routine.
    By crywolf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2015, 07:25 PM
  2. File download from google drive and dropbox
    By patz006 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-26-2015, 10:02 AM
  3. Upload File to a mapped drive
    By zhaype in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-07-2013, 10:50 PM
  4. Is it possible to run a macro to upload Access DB to a shared drive?
    By JasonPsychoSO242 in forum Access Tables & Databases
    Replies: 4
    Last Post: 12-28-2012, 02:58 PM
  5. Replies: 7
    Last Post: 01-12-2009, 06:19 PM
  6. [SOLVED] can we upload files in google group
    By sajay in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-07-2005, 03:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1