VbaProject class

VbaProject class

Provides access to VBA project information. A VBA project inside the document is defined as a collection of VBA modules. To learn more, visit the Working with VBA Macros documentation article.

Constructors

NameDescription
VbaProject()Creates a blank VbaProject.

Properties

NameDescription
codePageGets or sets the VBA project’s code page.
isProtectedShows whether the VbaProject is password protected.
isSignedShows whether the VbaProject is signed or not.
modulesReturns collection of VBA project modules.
nameGets or sets VBA project name.
referencesGets a collection of VBA project references.

Methods

NameDescription
clone()Performs a copy of the VbaProject.

See Also