From d5d0aae48b791f223cc55efb842d033333c5e3cb Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 17 Mar 2020 16:22:59 -0400 Subject: [PATCH] Rename menus to non-test text --- Code.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code.ts b/Code.ts index d39cded..c04a2d0 100644 --- a/Code.ts +++ b/Code.ts @@ -1,7 +1,7 @@ function onOpen() { const ui = SpreadsheetApp.getUi(); - ui.createMenu('test') - .addItem('test1', 'test') + ui.createMenu('CMS Document Generation') + .addItem('Generate document for current row', 'generateForCurrentRow') .addToUi(); } @@ -43,7 +43,7 @@ function copyBody( } } -function test() { +function generateForCurrentRow() { const cell = SpreadsheetApp.getActive().getCurrentCell(); const template = DocumentApp.openById( '1V0uMuM80BGpjpdt1AmuzlU97tDI_u-y2rOfdl4tkqmc'