-
Notifications
You must be signed in to change notification settings - Fork 362
How to make the cell locked? Please give me a example!! #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just did some tests, and apparently
By default, all cells in a worksheet are protected unless specifically "un-protected":
With the above example, if you open the worksheet and "protect sheet" in MS Office, you should be able to overwrite the cell B2, but no other cell. |
I made a mental note to implement the general worksheet protection setting. |
Thank you for your reply! |
Hi @txtxtxtxtxtxtx - I implemented the functionality today in 9a7a678 in the development-aral branch. Feel free to test it and let me know here if you have any feedback. |
merged the patch into master today |
Now I use OpenXLSX to write some cells' value, and then I want to set these cells' cellFormat to make their value be protected. So when user open the Excel, he can't change the value of the locked cells. Can OpenXLSX do that?
The text was updated successfully, but these errors were encountered: