VbaModule

VbaModule class

Represents a VBA module.

The VbaModule type exposes the following members:

Properties

NameDescription
attributesGets a collection of the module’s attributes.
nameGets a name of the VBA module
typeGets the type of the module.
source_codeGets or sets a source code of the VBA module

Methods

NameDescription
create_procedural_module(name)Creates an instance of VbaModule with VbaModuleType.ProceduralModule type.
create_class_module(name)Creates an instance of VbaModule with VbaModuleType.ClassModule type.

See Also