protect method

protect

Protects a workbook.

def protect(self, protection_type, password):
    ...
ParameterTypeDescription
protection_typeProtectionTypeProtection type.
passwordstrPassword to protect the workbook.

See Also