Protect and Unprotect Workbook Structure with Golang via C++
Contents
[
Hide
]
To prevent other users from viewing hidden worksheets, adding, moving, deleting, or hiding worksheets, and renaming worksheets, you can protect the structure of your Excel workbook with a password.
Protect and Unprotect Workbook Structure in MS Excel

- Click Review > Protect Workbook.
- Enter a password in the Password box.
- Select OK, re‑enter the password to confirm it, and then select OK again.
Protect Workbook Structure Using Aspose.Cells for Go via C++
You only need the following simple lines of code to implement protecting the workbook structure of Excel files.
Unprotect Workbook Structure Using Aspose.Cells for Go via C++
Unprotecting workbook structure is easy with the Aspose.Cells API.
Note: a correct password is required.