protect method

This method makes current sheet un-modifiable from the user interface. After calling this method, the Protected property of Sheet returns true.

Defined in

Sheet

Syntax

public void protect()
public void protect(String password)

Parameters

String password

Uses a string as password to lock this sheet.

Usage

After calling this method, the sheet can not be modified from the UI, but can be modified by the API.

See examples

Example: protect method