Delete a row

Here is a tip how to delete a row.

 

Source code

function deleteRow() {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var sh = ss.getActiveSheet();

  sh.deleteRow(4);
}

 

Format

SheetObject.deleteRow(rowPosition)

 

Parameters

rowPosition … The target row’s number. This row will be deleted.

  

Responses

None

Leave a Comment