a guest Jul 17th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function deleteRows() {
  2.  var ss = SpreadsheetApp.getActiveSpreadsheet();
  3.  var s = ss.getSheetByName('Copy of TBC Sort');
  4.  var r = s.getRange('C3:C400');
  5. var v = r.getValues();
  6. for(var i=v.length-1;i>=0;i--)
  7.  if(v[0,i]=='Delete Row')
  8.   s.deleteRow(i+1);
  9.  };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand