Aspose::Cells::Vba::VbaModuleCollection class
Contents
[
Hide
]VbaModuleCollection class
Represents the list of VbaModule
class VbaModuleCollection
Methods
Fields
Field | Description |
---|---|
_impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//Instantiating a Workbook object
Workbook workbook;
// Init VBA project.
VbaProject vbaProject = workbook.GetVbaProject();
// Add a new module.
vbaProject.GetModules().Add(VbaModuleType::Class, u"test");
//Saving the Excel file
workbook.Save(u"book1.xlsm");
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells::Vba
- Library Aspose.Cells for C++