HotXLS dokumentacija

Protects a Worksheet so that it cannot be modified

procedure

procedure

Protect(); Protect();
Protect(); String. A string that specifies a case-sensitive password for the Worksheet. If this argument is omitted, you can unprotect the Worksheet without using a password. Otherwise, you must specify the password to unprotect the Worksheet
String. A string that specifies a case-sensitive password for the Worksheet. If this argument is omitted, you can unprotect the Worksheet without using a password. Otherwise, you must specify the password to unprotect the Worksheet ].Protect(

Workbook.Sheets[

].Protect(

Workbook.Sheets[1].Protect('mypass123');

'mypass123'