function onOpen() { const ui = SpreadsheetApp.getUi(); ui.createMenu('MENU') .addItem('PDF','makePDF') .addItem('Clear Routine','clear') .addToUi(); } function clear() { var spreadsheet = SpreadsheetApp.getActive(); spreads...