Protect and Unprotect Worksheet
Contents
[
Hide
]
To prevent other users from accidentally or deliberately changing, moving, or deleting data in a worksheet, you can lock the cells on your Excel worksheet and then protect the sheet with a password.
Protect and unprotect Worksheet in MS Excel
- Click Review > Protect Worksheet.
- Enter a password in the Password box.
- Select allow options.
- Select OK, re-enter the password to confirm it, and then select OK again.
Protect Worksheet Using Aspose.Cell for Python
Only need the following simple lines of code to implement protecting workbook structure of Excel files.
Unprotect Worksheet Using Aspose.Cell for Python
Unprotecting worksheet is easy with Aspose.Cells API. If worksheet is password-protected, a correct password is required.