Expand Minimize
This topic has not yet been rated - Rate this topic

Workbook.Password Property

Gets or sets the password that must be supplied to open the workbook.

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
string Password { get; set; }

Property Value

Type: String
The password that must be supplied to open the workbook.

Use strong passwords that combine uppercase and lowercase letters, numbers, and symbols. Weak passwords do not mix these elements. Strong password: Y6dh!et5. Weak password: House27. Use a strong password that you can remember so that you do not have to write it down.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.