Skip to main content

TdxCustomSpreadSheet.Unprotect Method

Disables the spreadsheet document structure protection.

Declaration

procedure Unprotect;

Remarks

Call this procedure to cancel the spreadsheet document structure protection. If the document is protected with a password, the Unprotect procedure invokes the Password Protection dialog:

If an end-user successfully enters the required password, the spreadsheet document structure protection is disabled. Otherwise, the incorrect password message box is displayed:

The OptionsProtection.Protected and OptionsBehavior.Protected properties are set to False when the spreadsheet document protection is successfully disabled.

You can allow end-users to cancel the spreadsheet document structure protection by linking the ProtectWorkbook command to an element of your UI.

See Also