I want to be abble to click on a button in a Google Sheet and add +1 to a particular cell.
I have this script :
function AddOne(inputCell) {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange(inputCell).activate();
spreadsheet.getCurrentCell().setValue(spreadsheet.getCurrentCell().getValue() + 1);
};
On the button, I assigned the script
AddOne('C6')
When I click on the button, i have the error Script function AddOne('C6') could not be found.
Can you please help me resolve this matter ?
Thanks in advance.