移除工作表的保护。工作表未受保护时该方法无效
语法
procedure UnProtect();
procedure UnProtect(Password: string);
procedure UnProtect(Password: string; lcid: Integer);
| Password |
String。表示用于取消工作表保护的区分大小写密码的字符串。工作表未用密码保护时,该参数会被忽略 |
| lcid |
Integer. The locale ID |
示例
This example removes protection from the Worksheet one
Workbook.Sheets[1].Unprotect('mypass123');