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

后端 未结 7 676
慢半拍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

    The getActiveSheet() function returns a Sheet object whose functions are documented at the link. It would be awesome if there were an API like that, but currently you need to delete and insert (rows, columns, or the contents of a specific range) in order to be able to do that sort of replacement.

提交回复
热议问题