This would be equivalent to the Excel Worksheet_SelectionChange
event.
-
Welcome. Please add a brief description of your search/research efforts as is suggested on How to Ask. – Rubén♦ Aug 11 '19 at 17:17
Not possible in Google sheets. There is no such "Event" in Google sheets.
You should read about the various Google Sheets-specific triggers that let scripts respond to a user's actions in a spreadsheet. Event Objects on GAS (Google Apps Script).
The type of change (EDIT, INSERT_ROW, INSERT_COLUMN, REMOVE_ROW, REMOVE_COLUMN, INSERT_GRID, REMOVE_GRID, FORMAT, or OTHER).