This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onEdit() { | |
// moves a row from a sheet to another when a magic value is entered in a column | |
// adjust the following variables to fit your needs | |
// see https://productforums.google.com/d/topic/docs/ehoCZjFPBao/discussion | |
var sheetNameToWatch = "COMMUNICATIONS"; | |
var columnNumberToWatch = 5; // column A = 1, B = 2, etc. | |
var valueToWatch = "DONE"; | |
var sheetNameToMoveTheRowTo = "ARCHIVE"; |