Trigger OnClick

1,069 views
Skip to first unread message

Maik Uhlig

unread,
Jul 28, 2021, 4:24:39 AM7/28/21
to Google Apps Script Community
Hello, 

does a trigger for onClick exist?

I want to start a script by clicking into the sheet and register, which cell was clicked.

Thanks for help

Maik
Message has been deleted
Message has been deleted

Alan Wells

unread,
Jul 28, 2021, 8:51:46 AM7/28/21
to Google Apps Script Community
No, there is no onClick event for a Google Sheet.

Clark Lind

unread,
Jul 28, 2021, 9:01:49 AM7/28/21
to Google Apps Script Community
AJ is correct, there is no "onClick()" event or method offered by the sheets interface or API. If this is truly something you absolutely must have, I think you would have to "listen" at the browser level, and create your own javascript event listener, then install via a browser add-on. But that is beyond the scope of this Group. 

Jonathan Butler

unread,
Jul 28, 2021, 8:08:25 PM7/28/21
to google-apps-sc...@googlegroups.com
It sounds like you want an onEdit Function.

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/986a6e0c-0b07-45ee-99b7-42ccefcdeb57n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages