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

Result: VbaModule


getSyncRoot

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

Result: Object


get_Item

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

Result: VbaModule


isSynchronized

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

Result: boolean


iterator

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

Result:


iteratorJava

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

Result:


remove

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

Parameters:

NameTypeDescription
valueVbaModuleThe module to remove from the collection.

size

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

Result: int