Class ExcelVbaModuleCollection
Collection class for VBA modules
Inherited Members
Namespace: OfficeOpenXml.VBA
Assembly: EPPlus.dll
Syntax
public class ExcelVbaModuleCollection : ExcelVBACollectionBase<ExcelVBAModule>, IEnumerable<ExcelVBAModule>, IEnumerable
Methods
AddClass(string, bool)
Adds a new VBA class
Declaration
public ExcelVBAModule AddClass(string Name, bool Exposed)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Name | The name of the class |
| bool | 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 |