_Workbook.PasswordEncryptionKeyLength _Workbook.PasswordEncryptionKeyLength _Workbook.PasswordEncryptionKeyLength Property


Returns an Integer indicating the key length of the algorithm Microsoft Excel uses when encrypting passwords for the specified workbook. Read-only.

 property int PasswordEncryptionKeyLength { int get(); };
public int PasswordEncryptionKeyLength { get; }
Public ReadOnly Property PasswordEncryptionKeyLength As Integer

Property Value


Use the SetPasswordEncryptionOptions(Object, Object, Object, Object) method to specify whether Excel encrypts file properties for the specified password-protected workbook.

Applies to