Google app scripts: email a spreadsheet as excel

It looks like @Christiaan Westerbeek’s answer is spot on but its been a year now since his post and I think there needs to be a bit of a modification in the script he has given above. var url = file.exportLinks[MimeType.MICROSOFT_EXCEL]; There is something wrong with this line of code, maybe that exportLinks has now … Read more

Dynamically edit multiple choice options in live Google Form using Apps Script

I believe we can achieve your second objective without too much difficulty and modify the form, based on the current state of response. The approach is to Create the form and associate it with a response spreadsheet In that response spreadsheet, create a script with a function (updateForm for instance) Bind that function with the … Read more

Google Apps Script, copy one spreadsheet to another spreadsheet with formatting

Have you looked here: https://developers.google.com/apps-script/reference/spreadsheet/sheet#copyTo(Spreadsheet) copyTo(spreadsheet) Copies the sheet to another spreadsheet. The destination spreadsheet can be the source. The new spreadsheet will have the name “Copy of [original spreadsheet name]”. var source = SpreadsheetApp.getActiveSpreadsheet(); var sheet = source.getSheets()[0]; var destination = SpreadsheetApp.openById(“ID_GOES HERE”); sheet.copyTo(destination);