Class ExcelVbaProtection
Vba security properties
Inheritance
Object
ExcelVbaProtection
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: OfficeOpenXml.VBA
Assembly: EPPlus.dll
Syntax
public class ExcelVbaProtection
Properties
HostProtected
If access to the VBA project was restricted by the VBA host application
Declaration
public bool HostProtected { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
UserProtected
If access to the VBA project was restricted by the user
Declaration
public bool UserProtected { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
VbeProtected
If access to the VBA project was restricted by the VBA project editor
Declaration
public bool VbeProtected { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
VisibilityState
if the VBA project is visible.
Declaration
public bool VisibilityState { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
SetPassword(String)
Password protect the VBA project. An empty string or null will remove the password protection
Declaration
public void SetPassword(string Password)
Parameters
| Type | Name | Description |
|---|---|---|
| String | Password | The password |