mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-10-23 08:07:32 -06:00
[GH-ISSUE #516] Workbook protection #515
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github-starred/libxlsxwriter#515
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Clements-Peter on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/516
Hi,
First of all, thank you very much for the nice work !
I was wondering, as "worksheet protection" is in place, if it would be possible to implement the "workbook protection".
At the moment I use openpyxl for that, and it would be nicer if this could be replaced completely by xlsxwriter.
Looking forward to the implementation,
Thanks again,
Peter
@jmcnamara commented on GitHub (Jun 5, 2026):
I don't intent to add "workbook protection" for libxlsxwriter/xlsxwriter. Here is the usual FAQ and recommendation to use
msoffice-crypt:Q. Can I password protect an XlsxWriter xlsx file
Although it is possible to password protect a worksheet using the Worksheet
protectmethod it isn't possible to password protect the entireworkbook/file using XlsxWriter.
The reason for this is that a protected/encrypted xlsx file is in a different
format from an ordinary xlsx file. This would require a lot of additional work,
and testing, and isn't something that is on the XlsxWriter roadmap.
However, it is possible to password protect an XlsxWriter generated file using
a third party open source tool called msoffice-crypt. This works for macOS, Linux and Windows: