Google Sheets Scripting

Antonow

New Member
Joined
Aug 19, 2015
Messages
39
Hello World!
I'm not sure if this is the right section to post this, but I'm needing some help.
As of the beginning of July my company opted to ditch Microsoft Office (To cut expenses) and moved to Google.
And that ruined a lot of my macros. I have no idea of how to script in google but I've been trying.

One of the most important sheets that we have is one that sends important info to suppliers.
First let me lay down an example of how the sheet is.
ABCDEFG

<tbody>
</tbody>

Sheet Name
Current Month
SupplierSupplier CodeSDESDE EMAILSupplier EmailComercial Email (IF ANY)Send Mail?
John Doe Co.022331Mr. Smithsmith@example.comjohndoe@company.comnoneY/N

<tbody>
</tbody>

Now, I'll try to explain how it used to work.
By hitting the Yes button in the column G, the macro looked for the current month in D4, and the information for the supplier where the Yes button was clicked. Looked for supplier name and send an email to him and with a copy for the SDE and Commercial Email.

The email used to say something like "Hello Mr. John Doe, here's the report of your company in the month of xx." Alongside with another info for the company, containing a PDF that was uploaded to the email from the pc.

My question here is, how to code it for google scripts, so it gets the file from Google Drive? It's driving me nuts, I've managed to make the script send the email but I just can not make it get the file from the Google Drive.
If you guys need the code, let me know and I'll do my best to help as I can.

Thanks and I wish you all a Wonderful weekend
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,214,967
Messages
6,122,503
Members
449,090
Latest member
RandomExceller01

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