VbaProject.Modules
VbaProject.Modules property
Gets a collection of VbaModuleCollection
public VbaModuleCollection Modules { get; }
Examples
Shows how to iterate over VBS modules of the project.
var project = new Project(DataDir + "VbaProject.mpp");
Console.WriteLine("Total Modules Count: " + project.VbaProject.Modules.Count);
foreach (var module in project.VbaProject.Modules)
{
Console.WriteLine("Module Name: " + module.Name);
Console.WriteLine("Source Code: " + module.SourceCode);
}
See Also
- class VbaModuleCollection
- class VbaProject
- namespace Aspose.Tasks
- assembly Aspose.Tasks