Show / Hide Table of Contents

Class ExcelVbaProtection

Vba security properties

Inheritance
System.Object
ExcelVbaProtection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
System.Boolean

UserProtected

If access to the VBA project was restricted by the user

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

VbeProtected

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

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

VisibilityState

if the VBA project is visible.

Declaration
public bool VisibilityState { get; }
Property Value
Type Description
System.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
System.String Password

The password

Back to top Generated by DocFX