Skip to content
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

Closed
FranLegon opened this issue Apr 30, 2024 · 2 comments
Closed

Password protected sheet or range #1891

FranLegon opened this issue Apr 30, 2024 · 2 comments

Comments

@FranLegon
Copy link

Excel allows for the protection of sheets and even specific ranges using a password:
image
image
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.

@xuri
Copy link
Member

xuri commented May 2, 2024

Thanks for your issue. Please reference the documentation of the ProtectSheet function. For example:

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.

@xuri xuri closed this as completed May 2, 2024
@FranLegon
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants