wb.protection
WorkbookProtection
2 methods
protect
→ Promise<void>protect(password?: string, options?: Partial<WorkbookProtectionOptions>): Promise<void>;| Parameter | Type | Required |
|---|---|---|
| password | string | optional |
| options | Partial<WorkbookProtectionOptions> | optional |
Protect workbook structure with optional password and options.
unprotect
→ Promise<boolean>unprotect(password?: string): Promise<boolean>;| Parameter | Type | Required |
|---|---|---|
| password | string | optional |
Unprotect the workbook. Returns true if successful (password matches).