Skip to content

Instantly share code, notes, and snippets.

@peko
Last active July 13, 2016 10:58
Show Gist options
  • Select an option

  • Save peko/244750034e48d4a0849c8f3362892788 to your computer and use it in GitHub Desktop.

Select an option

Save peko/244750034e48d4a0849c8f3362892788 to your computer and use it in GitHub Desktop.
change.js
function onEdit(e){
if(e) {
var range = e.range;
if(range.getA1Notation() == "A1") {
for(var i=2; i<=10; i++) {
SpreadsheetApp.getActiveSheet().getRange('A'+i).setValue(e.value);
Utilities.sleep(5000);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment