I want to try and clear rows ready to delete that contain a specific word within google sheets, the problem i have is the script i have gone with delete lines 1 by 1 which can take a long time if you have a lot of row to search through, where if i could just highlight all those rows and clear the data if the row cantains the specific word then that would be a lot quicker as i could sort the data afterwards
function deleteRows() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var s = ss.getSheetByName('Copy of TBC Sort');
var r = s.getRange('C3:C400');
var v = r.getValues();
for(var i=v.length-1;i>=0;i--)
if(v[0,i]=='Delete Row')
s.deleteRow(i+1);
};