How can you monitor for click events in Google Apps script for spreadsheets?

前端 未结 6 1802
轮回少年
轮回少年 2021-01-12 13:51

I\'m managing a Google spreadsheet with a script. onEdit is working - I can colour a cell red by putting

SpreadsheetApp.getActiveRange().setBackgroundRGB(25         


        
6条回答
  •  暖寄归人
    2021-01-12 14:22

    As stated on the comments above before there's no way (right now) to create an onClick() function for Google Spreadsheets. That makes sense due to the fact that the google app script functions are processed in the server, the amount of load generated by onClick() events execution would make pretty easy to deplete all the quota of requests provided by default.

    You should be using the documentation for creating a button and clicking on it.

提交回复
热议问题