Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13981

Change the Protection Status for Locked for a special column

$
0
0

I would like to use Openpyxl to change the Protection status for Locked for the special column.

I have tried to use the following code

for col in ['K']:    for cell in ws[col]:        cell.protection = Protection(locked=False)

But the below error pops up:NameError: name 'Protection' is not defined


Viewing all articles
Browse latest Browse all 13981

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>