Example: Protected property

This example makes the active sheet un-modifiable first, and then makes a cell of the sheet can be modified.

  spreadsheet.getActiveSheet().protect("1234");
  spreadsheet.getActiveSheet().cells(5,5).setProtected(false);

Related information

Protected property