This is a sample script for highlighting the row and column of the selected cell using Google Apps Script … and the OnSelectionChange event trigger
Nice little script solution which could be a very useful addition to your script projects as an accessibility feature.
Source: Highlighting Row and Column of Selected Cell using Google Apps Script · tanaike

Member of Google Developers Experts Program for Google Workspace (Google Apps Script) and interested in supporting Google Workspace Devs.