Я нашел этот код, который позволяет мне открыть URL. Но я бы хотел открыть вторую вкладку, например: https://www.google.com/search?q= и https://www.bing.com/search?q=
Я новичок и не могу найти решение спасибо за помощь.
function openurl() {
var selection = SpreadsheetApp.getActiveSheet().getActiveCell().getValue();
var selection2 = "https://www.google.com/search?q=";
var html = "<script>window.open('" + selection2 + selection + "');google.script.host.close();
</script>";
var userInterface = HtmlService.createHtmlOutput(html);
SpreadsheetApp.getUi().showModalDialog(userInterface, 'Open Tab');
}