I have created a script in 'script editor' called
Clear1
to clear a selected range of cells in a sheet. When the script is run from the 'script editor' it executes and clears the chosen cells.
I have created a google drawing and allowed permissions for the script to affect the sheet, but when I click the drawing I get>
Script function Clear1 could not be found
I cannot link a google drawing to the script.
Script is
function clearRange()
{
var Detailed = SpreadsheetApp.getActive().getSheetByName('Detailed');
Detailed.getRange('G40:G53').clearContent()
}
Any thoughts? What am I missing?
clearRangenotClear1(?)