How do I replace text in a spreadsheet with Google Apps Script?

后端 未结 7 670
慢半拍i
慢半拍i 2020-12-01 17:30

I wanna find a specified text in spreadsheet and replace it with other word. I tried like this.

sheet = SpreadsheetApp.getActiveSheet()
sheet.replaceText (\'         


        
7条回答
  •  星月不相逢
    2020-12-01 17:55

    Try something like this:

    var sheet  = SpreadsheetApp.getActiveSheet();
    var cell = sheet.getRange("A1:A1");
    cell.setValue('ga: sessions','Sessions');
    

提交回复
热议问题