Skip to content

Class ExcelVbaProtection

Namespace: OfficeOpenXml.VBA
Assembly: EPPlus.dll

Vba security properties

public class ExcelVbaProtection

Inheritance

object ← ExcelVbaProtection

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Properties

HostProtected

If access to the VBA project was restricted by the VBA host application

public bool HostProtected { get; }

Property Value

bool

UserProtected

If access to the VBA project was restricted by the user

public bool UserProtected { get; }

Property Value

bool

VbeProtected

If access to the VBA project was restricted by the VBA project editor

public bool VbeProtected { get; }

Property Value

bool

VisibilityState

if the VBA project is visible.

public bool VisibilityState { get; }

Property Value

bool

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 string

The password