Workbook.Protect

Workbook.Protect method

Protects a workbook.

public void Protect(ProtectionType protectionType, string password)
ParameterTypeDescription
protectionTypeProtectionTypeProtection type.
passwordStringPassword to protect the workbook.

See Also