VbaModuleCollection

VbaModuleCollection class

Represents a collection of a VBA Project modules.

public sealed class VbaModuleCollection : IVbaModuleCollection

Properties

NameDescription
Count { get; }Gets the number of elements actually contained in the collection. Read-only Int32.
IsSynchronized { get; }Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only Boolean.
Item { get; }Gets the element at the specified index.
SyncRoot { get; }Returns a synchronization root. Read-only Object.

Methods

NameDescription
AddEmptyModule(string)Adds a new empty module to the VBA Project.
CopyTo(Array, int)Copies all elements from the collection to the specified array.
GetEnumerator()Returns an enumerator that iterates through the collection.
Remove(IVbaModule)Removes the first occurrence of a specific object from the collection.

See Also