Skip to content

Instantly share code, notes, and snippets.

View mrjarbenne's full-sized avatar

Jared Bennett mrjarbenne

View GitHub Profile
@mrjarbenne
mrjarbenne / code.gs
Created May 29, 2018 17:31
Move a row in a Google Sheet from one sheet to another: Props https://productforums.google.com/forum/#!topic/docs/ehoCZjFPBao
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";