Skip to content

Instantly share code, notes, and snippets.

@chawel
Last active June 7, 2018 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chawel/7381073687a254938355b5c50d5e4c62 to your computer and use it in GitHub Desktop.
Save chawel/7381073687a254938355b5c50d5e4c62 to your computer and use it in GitHub Desktop.
Google Spreadsheet script: Monitors specific column and comments when edited (adds modification date)
function onEdit(e){
var sheet = e.source.getActiveSheet();
var editedCell = sheet.getActiveCell();
// w tym przykładzie monitorujemy 6 kolumnę
if(editedCell.getColumn() == 6){
editedCell.setNote('Last modified: ' + new Date());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment