Skip to content

Class ExcelVbaModuleCollection

Namespace: OfficeOpenXml.VBA
Assembly: EPPlus.dll

Collection class for VBA modules

public class ExcelVbaModuleCollection : ExcelVBACollectionBase<ExcelVBAModule>, IEnumerable<ExcelVBAModule>, IEnumerable

Inheritance

object ← ExcelVBACollectionBase<ExcelVBAModule> ← ExcelVbaModuleCollection

Implements

IEnumerable
IEnumerable<ExcelVBAModule>

Inherited Members

ExcelVBACollectionBase<ExcelVBAModule>._list
ExcelVBACollectionBase<ExcelVBAModule>.Count
ExcelVBACollectionBase<ExcelVBAModule>.Exists(string)
ExcelVBACollectionBase<ExcelVBAModule>.GetEnumerator()
ExcelVBACollectionBase<ExcelVBAModule>.Remove(ExcelVBAModule)
ExcelVBACollectionBase<ExcelVBAModule>.RemoveAt(int)
ExcelVBACollectionBase<ExcelVBAModule>.this[int]
ExcelVBACollectionBase<ExcelVBAModule>.this[string]
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Methods

AddClass(string, bool)

Adds a new VBA class

public ExcelVBAModule AddClass(string Name, bool Exposed)

Parameters

Name string

The name of the class

Exposed bool

Private or Public not createble

Returns

ExcelVBAModule

The class object

AddModule(string)

Adds a new VBA Module

public ExcelVBAModule AddModule(string Name)

Parameters

Name string

The name of the module

Returns

ExcelVBAModule

The module object