Class ExcelVbaModuleCollection
Collection class for VBA modules
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 ExcelVbaModuleCollection : ExcelVBACollectionBase<ExcelVBAModule>, IEnumerable<ExcelVBAModule>, IEnumerable
Methods
AddClass(String, Boolean)
Adds a new VBA class
Declaration
public ExcelVBAModule AddClass(string Name, bool Exposed)
Parameters
| Type | Name | Description |
|---|---|---|
| String | Name | The name of the class |
| Boolean | Exposed | Private or Public not createble |
Returns
| Type | Description |
|---|---|
| ExcelVBAModule | The class object |
AddModule(String)
Adds a new VBA Module
Declaration
public ExcelVBAModule AddModule(string Name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | Name | The name of the module |
Returns
| Type | Description |
|---|---|
| ExcelVBAModule | The module object |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable