HotXLS-Dokumentation

Protect-Methode

Schützt ein Tabellenblatt, sodass es nicht geändert werden kann

Syntax

procedure Protect();
procedure Protect(Password: string);
Password String. String dass Gibt case-sensitive Kennwort für Arbeitsblatt. If dieser argument ist omitted, Sie können unprotect Arbeitsblatt ohne mit Kennwort. Otherwise, must specify Kennwort zu unprotect Arbeitsblatt

Beispiel

Dieses Beispiel schützt Tabellenblatt eins

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

Siehe auch