VbaProject

VbaProject class

Represents VbaProject.

public class VbaProject

Properties

Name Description
CompilationArguments { get; } Gets conditional Compilation Arguments
Description { get; } Gets a project description.
HelpContextId { get; } Gets a project Help Context Id
HelpFile { get; } Gets a help file name
Modules { get; } Gets a collection of VbaModuleCollection
Name { get; } Gets project name
References { get; } Gets a collection of VbaReferenceCollection

Examples

Shows how to read VBA project properties.

var project = new Project(DataDir + "VbaProject.mpp");

Console.WriteLine("VbaProject.Name " + project.VbaProject.Name);
Console.WriteLine("VbaProject.Description " + project.VbaProject.Description);
Console.WriteLine("VbaProject.CompilationArguments" + project.VbaProject.CompilationArguments);
Console.WriteLine("VbaProject.HelpContextId" + project.VbaProject.HelpContextId);
Console.WriteLine("VbaProject.HelpFile" + project.VbaProject.HelpFile);

See Also