Protecting Workbook in openpyxl

后端 未结 1 1486
醉话见心
醉话见心 2020-12-31 22:06

I try to protect an Excel workbook with openpyxl.

So far I had a look into the different, potentially relevant classes but I can\'t find a set_password

相关标签:
1条回答
  • 2020-12-31 22:38

    This doesn't currently work in Openpyxl (v2.4.8) - the password is not written to the output file. There is an open PR for this (https://bitbucket.org/openpyxl/openpyxl/pull-requests/180/read-and-write-workbook-protection/diff), so hopefully it will be included in future releases.

    0 讨论(0)
提交回复
热议问题