pub enum ModuleType {
Procedural,
DocClsDesigner,
}
Expand description
Specifies the containing module’s type.
Variants§
Procedural
Specifies a procedural module.
A procedural module is a collection of subroutines and functions.
DocClsDesigner
Specifies a document module, class module, or designer module.
A document module is a type of VBA project item that specifies a module for embedded macros and programmatic access operations that are associated with a document.
A class module is a module that contains the definition for a new object. Each instance of a class creates a new object, and procedures that are defined in the module become properties and methods of the object.
A designer module is a VBA module that extends the methods and properties of an ActiveX control that has been registered with the project.
The file format specification doesn’t distinguish between these three module types and encodes them using a single umbrella type ID.