HotXLS-Dokumentation

Protect-Methode

Schützt eine Arbeitsmappe, sodass sie nicht geändert werden kann

Syntax

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

Beispiel

Dieses Beispiel setzt das Passwort für die Arbeitsmappe

Workbook.Protect('mypass123');