Google sheets - on clicking a tab/sheet trigger a action

Clash Royale CLAN TAG#URR8PPP
Google sheets - on clicking a tab/sheet trigger a action
In Google sheets, I have multiple sheets/tab in one spreadsheet file. I want to trigger a action when I switch from one tab to another i.e. when I click on the tab name / sheet name. Is this possible?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.