VbaModuleCollection

VbaModuleCollection class

Represents a collection of a VBA Project modules.

addEmptyModule

NameDescription
addEmptyModule (String)Adds a new empty module to the VBA Project.

Parameters:

NameTypeDescription
nameStringName of the module

Returns: VbaModule


getSyncRoot

NameDescription
getSyncRoot ()Returns a synchronization root. Read-only Object.

Returns: Object


get_Item

NameDescription
get_Item (int)Gets the element at the specified index.

Returns: VbaModule


isSynchronized

NameDescription
isSynchronized ()Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean


iterator

NameDescription
iterator ()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava ()Returns a java iterator for the entire collection.

Returns:


remove

NameDescription
remove (VbaModule)Removes the first occurrence of a specific object from the collection.

Parameters:

NameTypeDescription
valueVbaModuleThe module to remove from the collection.

Returns: void


size

NameDescription
size ()Gets the number of elements actually contained in the collection. Read-only int.

Returns: int