function List1() { var selection = SpreadsheetApp.getActiveSheet().getActiveCell().getValue(); var html = ""; var userInterface = HtmlService.createHtmlOutput(html); SpreadsheetApp.getUi().showModalDialog(userInterface, 'abrakadabra'); } function List2() { var selection = SpreadsheetApp.getActiveSheet().getActiveCell().getValue(); var html = ""; var userInterface = HtmlService.createHtmlOutput(html); SpreadsheetApp.getUi().showModalDialog(userInterface, 'Čekejte prosím'); }