I have some information that I would like to push from a primary google sheet to other sheets which I need to select, I would like to turn this into a menu item so I've added:
ui.createMenu('Push to Sheet').addItem('Select Sheet', 'myFunction').addToUi();
I have a complicated function that starts with:
function myFunction(PARAM1, PARAM2) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
.......
I'm not clear How to pass parameters to the function using this technique. How can I get this working?