How to replace text in Google Spreadsheet using App Scripts?

前端 未结 4 1351
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 22:07

I tried to get the value of a range and than remove all points from the cell.

var FILE = SpreadsheetApp.openById(\"xyz\");
var CONTENT = FILE.getSheetByName(         


        
4条回答
  •  被撕碎了的回忆
    2020-12-08 22:54

    For some reason, this solution doesn't work for me. Here is my whole code that should replace the '+' symbol with 'nothing'

      // I need to replace more occurrences of different strings, so this is just an example..
      var ui = SpreadsheetApp.getUi();
      var ss = SpreadsheetApp.getActiveSpreadsheet();
      var range = ss.getRange("G5:G7").getValues();
    
      // this is a loop, to go through multiple cells that may contain the text, that needs to be replaced.
        for (var i = 0 ; i

提交回复
热议问题