Information about protection of various aspects of a sheet. TRUE values
https://openpyxl.readthedocs.io/en/stable/api/openpyxl.worksheet.protection.html
SheetProtection(
sheet = FALSE,
objects = FALSE,
scenarios = FALSE,
formatCells = TRUE,
formatRows = TRUE,
formatColumns = TRUE,
insertColumns = TRUE,
insertRows = TRUE,
insertHyperlinks = TRUE,
deleteColumns = TRUE,
deleteRows = TRUE,
selectLockedCells = FALSE,
selectUnlockedCells = FALSE,
sort = TRUE,
autoFilter = TRUE,
pivotTables = TRUE,
password = NULL,
algorithmName = NULL,
saltValue = NULL,
spinCount = NULL,
hashValue = NULL,
...
)
An openpyxl Python object.
sheet
objects
scenarios
formatCells
formatRows
formatColumns
insertColumns
insertRows
insertHyperlinks
deleteColumns
deleteRows
selectLockedCells
selectUnlockedCells
sort
autoFilter
pivotTables
password
algorithmName
saltValue
spinCount
hashValue
Additional arguments, i.e. kwargs.
mean that protection for the object or action is active This is the **default** when protection is active, ie. users cannot do something
if (FALSE) {
SheetProtection()
}
Run the code above in your browser using DataLab