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'