php editor Banana teaches you how to protect the Excel workbook structure from being changed. In Excel, we can protect the workbook structure by setting a password to prevent others from modifying the workbook. First, open the Excel document, click "File" -> "Information" -> "Protect Workbook" -> "Encrypt Password", set the password and save it. In this way, others will need to enter a password to make modifications when opening the workbook, effectively protecting the structure of the workbook from being modified.
The contents between workbooks are usually related to each other. Misoperation may cause damage to the data table. Therefore, it is crucial to protect the structure of your Excel workbook.
Today we will talk about how to protect the workbook structure. You can prohibit renaming, moving, copying, deleting and other operations on the worksheet.
After opening the Excel table, click [Protect Workbook] under the option [Review] above. After a dialog box pops up, enter the password you want to set, and click [OK].
Then enter the password again for secondary confirmation. In this way, the workbook structure protection of the Excel table is set.
After setting up, we can see that the operation options of the workbook are gray and cannot be clicked.
When making changes to the workbook, the prompt box "The workbook is protected and cannot be changed" will pop up.
Of course, if the Excel workbook does not need to be protected in the future, or you may need to make changes, you can also cancel it.
Just click [Protect Workbook] under the [Review] option above Excel, and then enter the originally set password in the pop-up dialog box. After clicking [OK], Excel's workbook protection will be revoked and the work will be done. The book structure has also been changed.
As can be seen from the above operation, Excel requires you to enter a password after setting up workbook protection and then revoking it. Therefore, you must remember or save it when setting the password, because Excel does not have the function to retrieve the password. This will be prompted when setting the password.
What should I do if I really forget and don’t know the password? We can use other tools to directly remove Excel workbook protection without entering a password, such as Pepsi Niu Excel Password Recovery Tool.
Select the [Unrestriction] module in the tool, import the Excel table, and click [Start].
Tool link: Pepsi Niu Excel Password Recovery Tool
The above is the detailed content of How to protect Excel workbook structure from being modified?. For more information, please follow other related articles on the PHP Chinese website!