Protect and Unprotect with C++
Encrypt and decrypt Excel files
To prevent others from accessing data in Excel files, protect the Excel file with a password.
Protect and unprotect workbook
To prevent other users from viewing hidden worksheets, adding, moving, deleting, or hiding worksheets, you can protect the structure of your Excel workbook with a password.
Protect and unprotect worksheet
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 shared workbook
Protect and unprotect the shared workbook.