-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Password protected sheet or range #1891
Comments
Thanks for your issue. Please reference the documentation of the err := f.ProtectSheet("Sheet1", &excelize.SheetProtectionOptions{
Password: "password",
SelectUnlockedCells: true,
SelectLockedCells: true,
}) Also reference the related issues #736 and #1511. I've closed this issue, if you have any questions, please let me know, and you can reopen this anytime. |
Thanks a lot! Sorry about the unnecessary request. Great work btw. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excel allows for the protection of sheets and even specific ranges using a password:
![image](https://private-user-images.githubusercontent.com/6463827/327011349-c10b401a-e684-4c96-91e4-88bdd933497a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MjcwODIsIm5iZiI6MTcyNDcyNjc4MiwicGF0aCI6Ii82NDYzODI3LzMyNzAxMTM0OS1jMTBiNDAxYS1lNjg0LTRjOTYtOTFlNC04OGJkZDkzMzQ5N2EucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjdUMDI0NjIyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTgyNDllYzljYTJmMDdlZjBhZGQ2NjUzODZkNDQ2YTkxN2Y5ZWMyODI0MDU2OTZlN2ExY2RmNWUyOGVmN2ZiNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.mBeZGHomh4_4Rq8JdDQ9mBWK6t99ecLtOFA4TnpUBbI)
![image](https://private-user-images.githubusercontent.com/6463827/327011845-1225a99f-d5b6-443b-b45f-b1da558161a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MjcwODIsIm5iZiI6MTcyNDcyNjc4MiwicGF0aCI6Ii82NDYzODI3LzMyNzAxMTg0NS0xMjI1YTk5Zi1kNWI2LTQ0M2ItYjQ1Zi1iMWRhNTU4MTYxYTMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjdUMDI0NjIyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjdlZGFhOGQ5NmY1OTNiMGU3MjJlZGI5N2JiZjU1YTIyZDBiNTg5MzAzMGRmOWI4Njc5ZGEyMWYwYzczNTc3NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.PBjjs_9D6bOTF3Ga7WN8zBssy37J5YXdN0TQ3DZ2GAQ)
Can this feature be implemented into excelize?
Thanks in advance!
Note: #199 refers to password-protecting an entire xlsx file and that issue has been solved.
The text was updated successfully, but these errors were encountered: