VbaProject class

VbaProject class

Represents VBA project with presentation macros.

The VbaProject type exposes the following members:

Constructors

ConstructorDescription
__init__This constructor creates new VBA project from scratch.
Project will be created in 1252 Windows Latin 1 (ANSI) codepage
__init__This constructor loads VBA project from binary representation of OLE container.

Properties

PropertyDescription
nameReturns the name of the VBA project.
Read-only str.
modulesReturns the list of all modules that are contained in the VBA project.
Read-only IVbaModuleCollection.
referencesReturns the list of all references that are contained in the VBA project.
Read-only IVbaReferenceCollection.
is_password_protectedIndicates whether the VBAProject is protected by a password to view project properties.
Read-only bool.

Methods

MethodDescription
to_binaryReturns the binary representation of the VBA project as OLE container

See Also