This would be equivalent to the Excel
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).