Results 1 to 3 of 3

Thread: Spreedsheet+Site.Google

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    VBAX Regular
    Joined
    Jul 2021
    Posts
    23
    Location
    Thanks for the reply and new solution.
    Can you share a code to reset to zero '0' for cell B2 automatically after 5 minus.

    below code is not working for me

    HTML Code:
    function myFunction() {
      var sheet = SpreadsheetApp.getActive().getSheetByName('sheet1'); sheet.getRange('B2').setValue(0);
    }
    function createTimeDrivenTriggers() {
      ScriptApp.newTrigger('myFunction')
          .timeBased()
          .everyMinutes(5) //I can not write 0.01 instead of 1 here. 
          .create();
    }
    Last edited by Aussiebear; 12-31-2024 at 04:02 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •