Home > Mobile >  Google App Scripts Copy row and Sort range using custom function
Google App Scripts Copy row and Sort range using custom function

Time:09-23

I am using a modified version of enter image description here


If you really want to make moveWhenDone() work, you can pass the event and r variables in onEdit(). Sample moveWhenDone(targetSheet, event, r).

But keep in mind that if you do that, what will happen is that you will basically move the current row twice to your destination sheet.

Example:

enter image description here

  • If you changed Assignment 2 to "Done", its succeeding row will also be moved to another sheet. Hence both Assignment 2 and 5 will be moved even if Assignment 5 is not yet "Done"
  • Related