Skip to content

Class ExcelVBAModule

Namespace: OfficeOpenXml.VBA
Assembly: EPPlus.dll

A VBA code module.

public class ExcelVBAModule : IExcelVBACollectionElement

Inheritance

object ← ExcelVBAModule

Implements

IExcelVBACollectionElement

Inherited Members

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

Properties

Attributes

Module level attributes.

public ExcelVbaModuleAttributesCollection Attributes { get; }

Property Value

ExcelVbaModuleAttributesCollection

Code

The code without any module level attributes. Can contain function level attributes.

public string Code { get; set; }

Property Value

string

Description

A description of the module

public string Description { get; set; }

Property Value

string

HelpContext

A reference to the helpfile

public int HelpContext { get; set; }

Property Value

int

Name

The name of the module

public string Name { get; set; }

Property Value

string

Private

If the module is private

public bool Private { get; set; }

Property Value

bool

ReadOnly

If the module is readonly

public bool ReadOnly { get; set; }

Property Value

bool

Type

Type of module

public eModuleType Type { get; }

Property Value

eModuleType

Methods

ToString()

Converts the object to a string

public override string ToString()

Returns

string

The name of the VBA module