TProtection.SetSheetProtection Method
Protects a sheet. On Excel goto Protect->Sheet to check it.
Syntax
Unit: FlexCel.Core
procedure TProtection.SetSheetProtection(const sheetPassword: string; const sheetProtectionOptions: TSheetProtectionOptions);
Parameters
<-> |
Parameter |
Type |
Description |
const |
sheetPassword |
string |
Password to protect the active sheet. You can set it to null to clear it. |
const |
sheetProtectionOptions |
TSheetProtection​Options |
The options to protect. |
See also