VbaProject

VbaProject class

Represents VBA project with presentation macros.

public sealed class VbaProject : IVbaProject

Constructors

Name Description
VbaProject() This constructor creates new VBA project from scratch. Project will be created in 1252 Windows Latin 1 (ANSI) codepage
VbaProject(byte[]) This constructor loads VBA project from binary representation of OLE container.

Properties

Name Description
Modules { get; } Returns the list of all modules that are contained in the VBA project. Read-only IVbaModuleCollection.
Name { get; } Returns the name of the VBA project. Read-only String.
References { get; } Returns the list of all references that are contained in the VBA project. Read-only IVbaReferenceCollection.

Methods

Name Description
ToBinary() Returns the binary representation of the VBA project as OLE container

See Also