VbaProjectReferenceCollection

VbaProjectReferenceCollection class

Represents all references of VBA project.

Properties

NameTypeDescription
Countint
Item (int)VbaProjectReferenceGet the reference in the list by the index.

Methods

NameDescription
addRegisteredReferenceAdd a reference to an Automation type library.
addControlRefrernceAdd a reference to a twiddled type library and its extended type library.
addProjectRefrernceAdds a reference to an external VBA project.
copyCopies references from other VBA project.
clear
removeAt
iterator
getReserved for internal use.
containsReserved for internal use.
addReserved for internal use.
indexOfReserved for internal use.

VbaProjectReferenceCollection.Count property

Type: int

VbaProjectReferenceCollection.Item (int) property

Get the reference in the list by the index.

Type: VbaProjectReference

addRegisteredReference(name, libid)

Add a reference to an Automation type library.

ParameterTypeDescription
nameStringThe name of reference.
libidStringThe identifier of an Automation type library.

addControlRefrernce(name, libid, twiddledlibid, extendedLibid)

Add a reference to a twiddled type library and its extended type library.

ParameterTypeDescription
nameStringThe name of reference.
libidStringThe identifier of an Automation type library.
twiddledlibidStringThe identifier of a twiddled type library
extendedLibidStringThe identifier of an extended type library

addProjectRefrernce(name, absoluteLibid, relativeLibid)

Adds a reference to an external VBA project.

ParameterTypeDescription
nameStringThe name of reference.
absoluteLibidStringThe referenced VBA project’s identifier with an absolute path.
relativeLibidStringThe referenced VBA project’s identifier with an relative path.

copy(source)

Copies references from other VBA project.

ParameterTypeDescription
sourceVbaProjectReferenceCollectionThe source references.

clear()

removeAt(index)

iterator()

get(index)

Reserved for internal use.

contains(value)

Reserved for internal use.

add(value)

Reserved for internal use.

indexOf(value)

Reserved for internal use.