Excel save pdf and upload to google drive

mdavontuur25

New Member
Joined
May 5, 2011
Messages
11
Hi all

I work for a company where the directors are mobile all the time and therefore need info on the go.

I create invoices and quotations at the base office in Cape Town and then have to save these as pdf and then upload them to google drive (the directors' cloud computing system). This can take up a lot of my time and I want to streamline this.
Question: I want to write a macro that will be activated by a button that will do the following:
1) Save my document in PDF format
2) Upload to google drive

NB! we are always logged in to the google drive page.

Thank you in advance for all the help.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hello there

1) For example, to save the active worksheet on the C drive:

Code:
ActiveSheet.ExportAsFixedFormat _                    Type:=xlTypePDF, _
                    Filename:="C:\test.pdf", _
                    To:=1, _
                    Quality:=xlQualityStandard, _
                    OpenAfterPublish:=False

2) I am not an exper ton this, even more, I do not know of lot of it ;)
But chances are you need to use an API. See here for example: https://developers.google.com/gdata/
 
Upvote 0
2) I am not an exper ton this, even more, I do not know of lot of it ;)
But chances are you need to use an API. See here for example: https://developers.google.com/gdata/

Google Drive comes as a Windows application and Windows service. All he needs to do is to save a file to a local folder assigned to GD. Google Drive service synchronizes the GD local folders as soon as it detects any changes in them, usually immediately. I started to use GD recently to share some work files with colleagues, and highly recommend it, it's a great stuff.
 
Upvote 0
Thank you for the information Poolhall.
So, it seems my macro above should point to that local folder instead of C:\
And it's ready :)
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,779
Members
449,049
Latest member
greyangel23

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