Question

I am doing a real time pending orders list and I am required to sort (DESC) date column whenever it is being edited (in order not miss all the latest orders).

However if 2nd user is editing a cell and during that moment script auto-sorts the table when 1st user changes date field - Google Spreadsheet does not move the pointer of the 2nd user to a new location, thus he ends up writing on the wrong cell.

Is there a way to programmatically know if another user is editing any cell on the sheet (then delay the auto-sort function) or automatically correct the cursor position of the user?

Was it helpful?

Solution

There's no way to tell that they are editing. You could use a onEdit trigger to tell when the cells change.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top