How can I have delay on Google Script App function without freezing the spreadsheet calculation.

sleep function freezing all spreadsheet calculation, and I have many calculation on the spreadsheet that I want to finish before the next step.

How can I solve that?

  • flush() doesn't help too
    – Ravid
    Oct 9, 2018 at 6:37

1 Answer 1


Use SpreadsheetApp.flush(); to apply the changes made by the script before the sleep statement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.