HotXLS 文件

UnProtect 方法

移除工作表的保護。若工作表未受保護,此方法不產生任何效果

語法

procedure UnProtect();
procedure UnProtect(Password: string);
procedure UnProtect(Password: string; lcid: Integer);
Password 字串. 字串 denotes case-sensitive 密碼 到 use 到 unprotect 工作表. If 工作表 isn't protected 使用 密碼, 此 argument 是 ignored
lcid 整數. locale ID

範例

此範例移除第一個工作表的保護

Workbook.Sheets[1].Unprotect('mypass123');