I\'m trying to use TextFinder, but in my spreadsheet, I don\'t want to return the header row or column 1 in my results. I see that TextFinder has a \"startFrom\" method that\'s
Assuming ss
is spreadsheet, you're creating a text finder for the entire spreadsheet. startFrom(range)
only says
The cell range after which the search should start
If you use getCurrentMatch()
or findNext()
it'll return the next range matching your text
criteria starting from that range(i.e., Sheet1!B2
). If you want a textFinder
specific to a range, then create the text finder on that range:
var tf = ss
.getSheetByName('Sheet1')
.getRange('B2:B')
.createTextFinder(text)