Delete a column

Here is a tip how to delete a column.

  

Source code

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

  sh.deleteColumn(4);
}

  

Format

SheetObject.deleteColumn(columnPosition)

  

Parameters

columnPosition … The target column’s number. This column will be deleted.

  

Responses

None

Leave a Comment