TProtection.SetWorkbookProtection Method
Protects the workbook. On Excel goto Protect->Workbook to check it.
Syntax
Unit: FlexCel.Core
procedure TProtection.SetWorkbookProtection(const workbookPassword: string; const workbookProtectionOptions: TWorkbookProtectionOptions);
Parameters
<-> |
Parameter |
Type |
Description |
const |
workbookPassword |
string |
Password to protect the file. You can set it to null to clear it. |
const |
workbookProtectionOptions |
TWorkbookProtection​Options |
The options to protect. |
See also