Class ExcelVbaProtection
- Namespace
- OfficeOpenXml.VBA
- Assembly
- EPPlus.dll
Vba security properties
public class ExcelVbaProtection
- Inheritance
-
ExcelVbaProtection
- Inherited Members
Properties
HostProtected
If access to the VBA project was restricted by the VBA host application
public bool HostProtected { get; }
Property Value
UserProtected
If access to the VBA project was restricted by the user
public bool UserProtected { get; }
Property Value
VbeProtected
If access to the VBA project was restricted by the VBA project editor
public bool VbeProtected { get; }
Property Value
VisibilityState
if the VBA project is visible.
public bool VisibilityState { get; }
Property Value
Methods
SetPassword(string)
Password protect the VBA project. An empty string or null will remove the password protection
public void SetPassword(string Password)
Parameters
Password
stringThe password