เอกสาร HotXLS

เมธอด UnProtect

ลบการป้องกันออกจากแผ่น เมธอดนี้ไม่มีผลหากแผ่นไม่ได้รับการป้องกัน

ไวยากรณ์

procedure UnProtect();
procedure UnProtect(Password: string);
procedure UnProtect(Password: string; lcid: Integer);
Password สตริง. สตริง that denotes case-sensitive password to ใช้ to unprotect sheet. หาก sheet isn't protected พร้อม password, this argument is ignored
lcid Integer. locale ID

ตัวอย่าง

ตัวอย่างนี้ลบการป้องกันออกจาก Worksheet หนึ่ง

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