Show / Hide Table of Contents

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
bool

UserProtected

If access to the VBA project was restricted by the user

Declaration
public bool UserProtected { get; }
Property Value
Type Description
bool

VbeProtected

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

Declaration
public bool VbeProtected { get; }
Property Value
Type Description
bool

VisibilityState

if the VBA project is visible.

Declaration
public bool VisibilityState { get; }
Property Value
Type Description
bool

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

In this article
Back to top Generated by DocFX