Table of Contents

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

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