HotXLS Docs

IsProtected property

Returns the value that indicates whether the Workbook is protected. Read-only Boolean.

Syntax

property IsProtected: boolean;

Example

This example checks workbook protection before changing workbook-level settings. Workbook protection controls the workbook structure; it is separate from worksheet protection.

if Workbook.IsProtected then
  Workbook.UnProtect;

Workbook.Date1904 := False;
Workbook.Save;

See also