I wanna find a specified text in spreadsheet and replace it with other word. I tried like this.
sheet = SpreadsheetApp.getActiveSheet()
sheet.replaceText (\'
TextFinder was released April of 2019:
function textFinder() {
const sheet = SpreadsheetApp.getActiveSheet();
const range = sheet.getDataRange();
// Creates a text finder for the range.
const textFinder = range.createTextFinder('findValue');
const allOccurrences = textFinder.replaceAllWith('replaceValue');
}