How to get the correct range to set the value to a cell?

后端 未结 3 1136
醉酒成梦
醉酒成梦 2020-11-30 19:48

I want to set text or number in Google Sheet from script.

I want to set Hello or number 9 in cell F2. I found this code so fa

3条回答
  •  庸人自扰
    2020-11-30 20:31

    The following code does what is required

    function doTest() {
      SpreadsheetApp.getActiveSheet().getRange('F2').setValue('Hello');
    }
    

提交回复
热议问题