Skip to content

Instantly share code, notes, and snippets.

View abouthillier's full-sized avatar

Alex Bouthillier abouthillier

View GitHub Profile
@abouthillier
abouthillier / gist:fbce35ef34e425cba03dfb8b9b001e4c
Created January 23, 2017 17:14 — forked from mhawksey/gist:1170597
Google Apps Script to fill in a Document template with Spreadsheet data
function onOpen() {
var menuEntries = [ {name: "Create Diary Doc from Sheet", functionName: "createDocFromSheet"}];
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.addMenu("Fitness Diaries", menuEntries);
}
function createDocFromSheet(){
var templateid = "1O4afl8SZmMxMFpAiN16VZIddJDaFdeRBbFyBtJvepwM"; // get template file id
var FOLDER_NAME = "Fitness Diaries"; // folder name of where to put completed diaries
// get the data from an individual user