Example: protect method

This example makes the active sheet un-modifiable from the UI.

  spreadsheet.getActiveSheet().protect("1234");

Related information

protect method