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.UnProtect('mypass123');